]> The Tcpdump Group git mirrors - tcpdump/commitdiff
addrtoname.c: constify several structs
authorKovarththanan Rajaratnam <[email protected]>
Sat, 20 Feb 2010 06:32:38 +0000 (07:32 +0100)
committerKovarththanan Rajaratnam <[email protected]>
Sat, 20 Feb 2010 06:32:39 +0000 (07:32 +0100)
addrtoname.c

index e67d1148c9425e9a39cbf1337d189224696d2d7e..363d9d01adfefe319ad78e92bbe3eebf4c806d79 100644 (file)
@@ -311,7 +311,7 @@ getname6(const u_char *ap)
 }
 #endif /* INET6 */
 
-static char hex[] = "0123456789abcdef";
+static const char hex[] = "0123456789abcdef";
 
 
 /* Find the hash node that corresponds the ether address 'ep' */
@@ -747,7 +747,7 @@ init_eprotoarray(void)
        }
 }
 
-static struct protoidlist {
+static const struct protoidlist {
        const u_char protoid[5];
        const char *name;
 } protoidlist[] = {
@@ -792,7 +792,7 @@ init_protoidarray(void)
        }
 }
 
-static struct etherlist {
+static const struct etherlist {
        const u_char addr[6];
        const char *name;
 } etherlist[] = {
@@ -861,7 +861,7 @@ init_etherarray(void)
        }
 }
 
-static struct tok ipxsap_db[] = {
+static const struct tok ipxsap_db[] = {
        { 0x0000, "Unknown" },
        { 0x0001, "User" },
        { 0x0002, "User Group" },