From f2fc5d42fd948d408a9362b8db7024d1cc209696 Mon Sep 17 00:00:00 2001 From: Jeff Morriss Date: Mon, 6 Dec 2010 22:08:48 +0000 Subject: Make some prefs callback functions static. (These modules don't use proto_reg_handoff_*() as their prefs callback.) svn path=/trunk/; revision=35138 --- asn1/dap/packet-dap-template.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'asn1/dap') diff --git a/asn1/dap/packet-dap-template.c b/asn1/dap/packet-dap-template.c index cd06bf8442..7ae880a79f 100644 --- a/asn1/dap/packet-dap-template.c +++ b/asn1/dap/packet-dap-template.c @@ -48,7 +48,7 @@ #include "packet-dap.h" #include -/* we don't have a separate dissector for X519 - +/* we don't have a separate dissector for X519 - most of DAP is defined in X511 */ #define PNAME "X.519 Directory Access Protocol" #define PSNAME "DAP" @@ -56,7 +56,7 @@ static guint global_dap_tcp_port = 102; static dissector_handle_t tpkt_handle; -void prefs_register_dap(void); /* forward declaration for use in preferences registration */ +static void prefs_register_dap(void); /* forward declaration for use in preferences registration */ /* Initialize the protocol and registered fields */ @@ -134,9 +134,9 @@ void proto_reg_handoff_dap(void) { oid_add_from_string("id-ac-directory-access","2.5.3.1"); /* ABSTRACT SYNTAXES */ - + /* Register DAP with ROS (with no use of RTSE) */ - register_ros_protocol_info("2.5.9.1", &dap_ros_info, 0, "id-as-directory-access", FALSE); + register_ros_protocol_info("2.5.9.1", &dap_ros_info, 0, "id-as-directory-access", FALSE); register_idmp_protocol_info("2.5.33.0", &dap_ros_info, 0, "dap-ip"); @@ -154,7 +154,9 @@ void proto_reg_handoff_dap(void) { } -void prefs_register_dap(void) { +static void +prefs_register_dap(void) +{ static guint tcp_port = 0; /* de-register the old port */ -- cgit v1.2.3