"address_to_str()" and "address_to_str_buf()" don't modify the "address"
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 1 Jan 2005 12:29:26 +0000 (12:29 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 1 Jan 2005 12:29:26 +0000 (12:29 +0000)
structure pointed to them by reference, so make the argument a "const"
pointer.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12911 f5534014-38df-0310-8fa8-9805f1628bb7

epan/to_str.c
epan/to_str.h

index 1440bf90a4980e244d05e882d3aab2ef377f51d3..050d5fa053d27330b30340189817941c47e28da7 100644 (file)
@@ -804,7 +804,7 @@ decode_numeric_bitfield(guint32 val, guint32 mask, int width,
    address types */
 /* convert an address struct into a printable string */
 gchar* 
-address_to_str(address *addr)
+address_to_str(const address *addr)
 {
 #ifndef INET6_ADDRSTRLEN
 #define INET6_ADDRSTRLEN 46
@@ -823,7 +823,7 @@ address_to_str(address *addr)
 }
 
 void
-address_to_str_buf(address *addr, gchar *buf)
+address_to_str_buf(const address *addr, gchar *buf)
 {
   struct atalk_ddp_addr ddp_addr;
 
index 56e1460d677a312fa4297e351c4ea031a312565d..5ae35be692b34e723f539f08c211dedfef12b671 100644 (file)
@@ -46,8 +46,8 @@ typedef enum {
 
 struct     e_in6_addr;
 
-extern gchar*  address_to_str(address *);
-extern void     address_to_str_buf(address *, gchar *);
+extern gchar*  address_to_str(const address *);
+extern void     address_to_str_buf(const address *, gchar *);
 extern gchar*  ether_to_str(const guint8 *);
 extern gchar*  ip_to_str(const guint8 *);
 extern void    ip_to_str_buf(const guint8 *, gchar *);