]> The Tcpdump Group git mirrors - tcpdump/commitdiff
oui.h/c: mark several structs as const
authorKovarththanan Rajaratnam <[email protected]>
Sat, 20 Feb 2010 07:50:09 +0000 (08:50 +0100)
committerKovarththanan Rajaratnam <[email protected]>
Sat, 20 Feb 2010 07:50:09 +0000 (08:50 +0100)
oui.c
oui.h

diff --git a/oui.c b/oui.c
index b8bea2f89f1643ad894efc09f6f63e3ecc8be194..422cd161b847cffa48a613ba6fa2a577efb4fc2a 100644 (file)
--- a/oui.c
+++ b/oui.c
@@ -28,7 +28,7 @@ static const char rcsid[] _U_ =
 
 /* FIXME complete OUI list using a script */
 
-struct tok oui_values[] = {
+const struct tok oui_values[] = {
     { OUI_ENCAP_ETHER, "Ethernet" },
     { OUI_CISCO, "Cisco" },
     { OUI_NORTEL, "Nortel Networks SONMP" },
@@ -55,7 +55,7 @@ struct tok oui_values[] = {
  *
  * List taken from Ethereal's epan/sminmpec.c.
  */
-struct tok smi_values[] = {
+const struct tok smi_values[] = {
     { SMI_IETF,                 "IETF (reserved)"},
     { SMI_ACC,                  "ACC"},
     { SMI_CISCO,                "Cisco"},
diff --git a/oui.h b/oui.h
index 4891dd167f9ee394a4056737b80b9a1015ad3bea..dc8bb01c8f1bad1ab06fcb41482d178b08a42fe0 100644 (file)
--- a/oui.h
+++ b/oui.h
@@ -14,8 +14,8 @@
  * Original code by Hannes Gredler ([email protected])
  */
 
-extern struct tok oui_values[];
-extern struct tok smi_values[];
+extern const struct tok oui_values[];
+extern const struct tok smi_values[];
 
 #define OUI_ENCAP_ETHER 0x000000        /* encapsulated Ethernet */
 #define OUI_CISCO       0x00000c        /* Cisco protocols */