Skip to content

Commit ec7a564

Browse files
committed
addrtoname.c: constify several structs
1 parent 599c6c5 commit ec7a564

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: addrtoname.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ getname6(const u_char *ap)
311311
}
312312
#endif /* INET6 */
313313

314-
static char hex[] = "0123456789abcdef";
314+
static const char hex[] = "0123456789abcdef";
315315

316316

317317
/* Find the hash node that corresponds the ether address 'ep' */
@@ -747,7 +747,7 @@ init_eprotoarray(void)
747747
}
748748
}
749749

750-
static struct protoidlist {
750+
static const struct protoidlist {
751751
const u_char protoid[5];
752752
const char *name;
753753
} protoidlist[] = {
@@ -792,7 +792,7 @@ init_protoidarray(void)
792792
}
793793
}
794794

795-
static struct etherlist {
795+
static const struct etherlist {
796796
const u_char addr[6];
797797
const char *name;
798798
} etherlist[] = {
@@ -861,7 +861,7 @@ init_etherarray(void)
861861
}
862862
}
863863

864-
static struct tok ipxsap_db[] = {
864+
static const struct tok ipxsap_db[] = {
865865
{ 0x0000, "Unknown" },
866866
{ 0x0001, "User" },
867867
{ 0x0002, "User Group" },

0 commit comments

Comments
 (0)