Add { 0, NULL } terminators to some "value_string" arrays lacking them.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 27 Nov 2001 22:37:20 +0000 (22:37 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 27 Nov 2001 22:37:20 +0000 (22:37 +0000)
Make some static that don't need to be exported.

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

packet-dcerpc.c
packet-klm.c
packet-rquota.c
packet-tacacs.c

index 7dcb0ddb29a5950cf84cbf2481e7faf778952185..d64772ca2936264e55fb7339ed449085f483c07f 100644 (file)
@@ -2,7 +2,7 @@
  * Routines for DCERPC packet disassembly
  * Copyright 2001, Todd Sabin <tas@webspan.net>
  *
- * $Id: packet-dcerpc.c,v 1.18 2001/11/27 11:01:35 guy Exp $
+ * $Id: packet-dcerpc.c,v 1.19 2001/11/27 22:37:19 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -61,23 +61,27 @@ static const value_string pckt_vals[] = {
     { 17, "Shutdown"},
     { 18, "Co_cancel"},
     { 19, "Orphaned"},
+    { 0,  NULL }
 };
 
 static const value_string drep_byteorder_vals[] = {
     { 0, "Big-endian" },
-    { 1, "Little-endian" }
+    { 1, "Little-endian" },
+    { 0,  NULL }
 };
 
 static const value_string drep_character_vals[] = {
     { 0, "ASCII" },
-    { 1, "EBCDIC" }
+    { 1, "EBCDIC" },
+    { 0,  NULL }
 };
 
 static const value_string drep_fp_vals[] = {
     { 0, "IEEE" },
     { 1, "VAX" },
     { 2, "Cray" },
-    { 3, "IBM" }
+    { 3, "IBM" },
+    { 0,  NULL }
 };
 
 static const true_false_string flags_set_truth = {
index a5dcf9914e9601c43f45894d01d8cb152f00c18e..b08bbcb509e73a22445a5e8b78a4612b225154d6 100644 (file)
@@ -1,7 +1,7 @@
 /* packet-klm.c    2001 Ronnie Sahlberg <rsahlber@bigpond.net.au>
  * Routines for klm dissection
  *
- * $Id: packet-klm.c,v 1.4 2001/06/18 02:17:48 guy Exp $
+ * $Id: packet-klm.c,v 1.5 2001/11/27 22:37:20 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -51,7 +51,7 @@ static gint ett_klm = -1;
 static gint ett_klm_lock = -1;
 static gint ett_klm_holder = -1;
 
-const value_string names_klm_stats[] =
+static const value_string names_klm_stats[] =
 {
 #define KLM_GRANTED            0
                {       KLM_GRANTED,    "KLM_GRANTED"   },
@@ -61,6 +61,7 @@ const value_string names_klm_stats[] =
                {       KLM_DENIED_NOLOCKS,     "KLM_DENIED_NOLOCKS"    },
 #define KLM_WORKING            3
                {       KLM_WORKING,    "KLM_WORKING"   },
+               {       0,              NULL }
 };
 
 static int
index 8b32befad3d0191135117363a51a0681779e6e91..3069b5a2ad826538aee21567ad77090e664d50b8 100644 (file)
@@ -2,7 +2,7 @@
  * Routines for rquota dissection
  * Copyright 2001, Mike Frisch <frisch@hummingbird.com>
  *
- * $Id: packet-rquota.c,v 1.4 2001/06/18 02:17:51 guy Exp $
+ * $Id: packet-rquota.c,v 1.5 2001/11/27 22:37:20 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -57,7 +57,7 @@ static int hf_rquota_ftimeleft = -1;
 static gint ett_rquota = -1;
 static gint ett_rquota_rquota = -1;
 
-const value_string names_rquota_status[] =
+static const value_string names_rquota_status[] =
 {
 #define Q_OK           1
        {       Q_OK,           "OK"    },
@@ -65,6 +65,7 @@ const value_string names_rquota_status[] =
        {       Q_NOQUOTA,      "NOQUOTA"       },
 #define Q_EPERM                3
        {       Q_EPERM,        "EPERM" },
+       {       0,              NULL }
 };
 
 
index 4094a2a0b84ee652c71e2c8ec8740faddf28f178..a4d1103c1818448366e9e6412a628cfde6d3f5c0 100644 (file)
@@ -2,7 +2,7 @@
  * Routines for cisco tacacs/xtacacs/tacacs+ packet dissection
  * Copyright 2001, Paul Ionescu <paul@acorp.ro>
  *
- * $Id: packet-tacacs.c,v 1.15 2001/07/11 16:03:34 guy Exp $
+ * $Id: packet-tacacs.c,v 1.16 2001/11/27 22:37:20 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -107,12 +107,16 @@ static const value_string tacacs_reason_vals[] = {
        { 4  , "quit" },
        { 5  , "idle" },
        { 6  , "drop" },
-       { 7  , "bad" }};
+       { 7  , "bad" },
+       { 0  , NULL }
+};
 
 static const value_string tacacs_resp_vals[] = {
        { 0  , "this is not a response" },
        { 1  , "accepted" },
-       { 2  , "rejected" }};
+       { 2  , "rejected" },
+       { 0  , NULL }
+};
 
 #define TAC_PLUS_AUTHEN 1
 #define TAC_PLUS_AUTHOR 2