diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-01-03 07:53:48 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-01-03 07:53:48 +0000 |
commit | 4ec580ef9d6d413139912f852bddb3b49441a364 (patch) | |
tree | 8b8fd854a5439a0fff7bcda55cebf9e519245b3c /packet-ncp.c | |
parent | 8ed66959744134d89fe6d6305249094607477ad2 (diff) |
Add a new "prefs_register_protocol()" routine, which is like
"prefs_register_module()" except that it takes a protocol index as
returned by "proto_register_protocol()" as its first argument, rather
than taking two character strings as arguments as its first two
arguments, and uses the protocol's abbreviation as the name to use for
preferences in the preferences file and the "-o" flag and uses the
protocol's short name as the name to use in the tabs in the
"Edit->Preferences" window.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2812 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-ncp.c')
-rw-r--r-- | packet-ncp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-ncp.c b/packet-ncp.c index b0d3dd4ed5..b1f8b910e5 100644 --- a/packet-ncp.c +++ b/packet-ncp.c @@ -3,7 +3,7 @@ * Gilbert Ramirez <gram@xiexie.org> * Modified to allow NCP over TCP/IP decodes by James Coe <jammer@cin.net> * - * $Id: packet-ncp.c,v 1.43 2001/01/03 06:55:30 guy Exp $ + * $Id: packet-ncp.c,v 1.44 2001/01/03 07:53:43 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -388,7 +388,7 @@ proto_register_ncp(void) register_init_routine(&ncp_init_protocol); /* Register a configuration option for initial size of NCP hash */ - ncp_module = prefs_register_module("ncp", "NCP", NULL); + ncp_module = prefs_register_protocol(proto_ncp, NULL); prefs_register_uint_preference(ncp_module, "initial_hash_size", "Initial Hash Size", "Number of entries initially allocated for NCP hash", |