From 4ccbfa3edca9d6b6abc2ad46f7734be82f5e994e Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Mon, 4 Aug 2003 02:49:04 +0000 Subject: 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 --- packet-dcerpc-wkssvc.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'packet-dcerpc-wkssvc.c') diff --git a/packet-dcerpc-wkssvc.c b/packet-dcerpc-wkssvc.c index e8cb9497c8..81f14c31e2 100644 --- a/packet-dcerpc-wkssvc.c +++ b/packet-dcerpc-wkssvc.c @@ -3,7 +3,7 @@ * Copyright 2001, Tim Potter * Copyright 2003, Richard Sharpe * - * $Id: packet-dcerpc-wkssvc.c,v 1.26 2003/06/26 04:30:30 tpot Exp $ + * $Id: packet-dcerpc-wkssvc.c,v 1.27 2003/08/04 02:48:59 tpot Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -1257,17 +1257,9 @@ proto_register_dcerpc_wkssvc(void) void proto_reg_handoff_dcerpc_wkssvc(void) { - header_field_info *hf_info; - /* Register protocol as dcerpc */ dcerpc_init_uuid(proto_dcerpc_wkssvc, ett_dcerpc_wkssvc, &uuid_dcerpc_wkssvc, ver_dcerpc_wkssvc, dcerpc_wkssvc_dissectors, hf_wkssvc_opnum); - - /* Set opnum strings from subdissector list */ - - hf_info = proto_registrar_get_nth(hf_wkssvc_opnum); - hf_info->strings = value_string_from_subdissectors( - dcerpc_wkssvc_dissectors, array_length(dcerpc_wkssvc_dissectors)); } -- cgit v1.2.3