aboutsummaryrefslogtreecommitdiffstats
path: root/packet-mount.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-11-19 23:23:41 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-11-19 23:23:41 +0000
commitfbe02e79cd60aa6c571ca1841e0c1fdde1ce11b0 (patch)
treeb0d840a69ebfea4758a3920bb3c34745284693c3 /packet-mount.c
parent2f3af3167ea24d05436d68d91dcde38677f6acab (diff)
Make various "value_string" tables "const"; this allows the compiler to
stuff them into shared read-only space. Put the "VALS()" cast macro into the initialization of an "hf_register_info" array. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1072 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-mount.c')
-rw-r--r--packet-mount.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/packet-mount.c b/packet-mount.c
index d1051c8444..26e99433e0 100644
--- a/packet-mount.c
+++ b/packet-mount.c
@@ -1,7 +1,7 @@
/* packet-mount.c
* Routines for mount dissection
*
- * $Id: packet-mount.c,v 1.5 1999/11/19 13:09:55 gram Exp $
+ * $Id: packet-mount.c,v 1.6 1999/11/19 23:23:41 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@unicom.net>
@@ -80,7 +80,7 @@ const vsff mount1_proc[] = {
/* RFC 1813, Page 107 */
-const value_string mount3_mountstat3[] =
+static const value_string mount3_mountstat3[] =
{
{ 0, "OK" },
{ 1, "ERR_PERM" },
@@ -177,13 +177,13 @@ proto_register_mount(void)
NULL, 0, "Path" }},
{ &hf_mount_status, {
"Status", "mount.status", FT_UINT32, BASE_DEC,
- mount3_mountstat3, 0, "Status" }},
+ VALS(mount3_mountstat3), 0, "Status" }},
{ &hf_mount_flavors, {
"Flavors", "mount.flavors", FT_UINT32, BASE_DEC,
NULL, 0, "Flavors" }},
{ &hf_mount_flavor, {
"Flavor", "mount.flavor", FT_UINT32, BASE_DEC,
- rpc_auth_flavor, 0, "Flavor" }},
+ VALS(rpc_auth_flavor), 0, "Flavor" }},
};
static gint *ett[] = {
&ett_mount,
@@ -199,4 +199,3 @@ proto_register_mount(void)
rpc_init_proc_table(MOUNT_PROGRAM, 1, mount1_proc);
rpc_init_proc_table(MOUNT_PROGRAM, 3, mount3_proc);
}
-