diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-01-03 07:53:48 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-01-03 07:53:48 +0000 |
commit | 3613c121fe53a2bcd70a3004a589bc38ecc2864d (patch) | |
tree | 8b8fd854a5439a0fff7bcda55cebf9e519245b3c /packet-ncp.c | |
parent | fee98dd94462787123ec7fa0d660044a4b1800c4 (diff) | |
download | wireshark-3613c121fe53a2bcd70a3004a589bc38ecc2864d.tar.gz |
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.
svn path=/trunk/; revision=2812
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", |