summaryrefslogtreecommitdiff
path: root/packet-dcerpc-samr.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-08-04 02:49:04 +0000
committerTim Potter <tpot@samba.org>2003-08-04 02:49:04 +0000
commit4ccbfa3edca9d6b6abc2ad46f7734be82f5e994e (patch)
tree63a279850eb8eef07cd8b9f98496347eac14907f /packet-dcerpc-samr.c
parent77f0aa01033ca862f0ba14692859051eb5b6430f (diff)
downloadwireshark-4ccbfa3edca9d6b6abc2ad46f7734be82f5e994e.tar.gz
Guy suggested that the dcerpc opnum value_string code could be simplified
somewhat. Now the dynamic initialisation of the value_string is contained in the value_string_from_subdissectors() function instead of being distributed amongst the dcerpc dissectors. svn path=/trunk/; revision=8123
Diffstat (limited to 'packet-dcerpc-samr.c')
-rw-r--r--packet-dcerpc-samr.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/packet-dcerpc-samr.c b/packet-dcerpc-samr.c
index b8d95c2c98..9ef1ed40fa 100644
--- a/packet-dcerpc-samr.c
+++ b/packet-dcerpc-samr.c
@@ -3,7 +3,7 @@
* Copyright 2001,2003 Tim Potter <tpot@samba.org>
* 2002 Added all command dissectors Ronnie Sahlberg
*
- * $Id: packet-dcerpc-samr.c,v 1.99 2003/07/24 20:33:22 guy Exp $
+ * $Id: packet-dcerpc-samr.c,v 1.100 2003/08/04 02:49:00 tpot Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -5676,16 +5676,8 @@ proto_register_dcerpc_samr(void)
void
proto_reg_handoff_dcerpc_samr(void)
{
- header_field_info *hf_info;
-
/* Register protocol as dcerpc */
dcerpc_init_uuid(proto_dcerpc_samr, ett_dcerpc_samr, &uuid_dcerpc_samr,
ver_dcerpc_samr, dcerpc_samr_dissectors, hf_samr_opnum);
-
- /* Set opnum strings from subdissector list */
-
- hf_info = proto_registrar_get_nth(hf_samr_opnum);
- hf_info->strings = value_string_from_subdissectors(
- dcerpc_samr_dissectors, array_length(dcerpc_samr_dissectors));
}