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

diff --git a/nlpid.c b/nlpid.c
index 47ebb5350493fc2108995a4164e35f7b507cc2bc..64a359baca694a08ba5f175db945c1de3171ddff 100755 (executable)
--- a/nlpid.c
+++ b/nlpid.c
@@ -26,7 +26,7 @@ static const char rcsid[] _U_ =
 #include "interface.h"
 #include "nlpid.h"
 
-struct tok nlpid_values[] = {
+const struct tok nlpid_values[] = {
     { NLPID_NULLNS, "NULL" },
     { NLPID_Q933, "Q.933" },
     { NLPID_LMI, "LMI" },
diff --git a/nlpid.h b/nlpid.h
index 31f6b66da6ba0fdf5346184e80ba11d38eb971d0..8931835a9940cada9bb480aa69d4da82bf60994a 100644 (file)
--- a/nlpid.h
+++ b/nlpid.h
@@ -14,7 +14,7 @@
  * Original code by Hannes Gredler ([email protected])
  */
 
-extern struct tok nlpid_values[];
+extern const struct tok nlpid_values[];
 
 #define        NLPID_NULLNS    0x00
 #define NLPID_Q933      0x08 /* ANSI T1.617 Annex D or ITU-T Q.933 Annex A */