aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/dap
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2010-12-06 22:08:48 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2010-12-06 22:08:48 +0000
commitf2fc5d42fd948d408a9362b8db7024d1cc209696 (patch)
tree051a8cba576212c18f1feff3d86ea30b8d6e129a /asn1/dap
parentc0565d89362a36ca02780196fa69f2330ffee5c3 (diff)
Make some prefs callback functions static. (These modules don't use proto_reg_handoff_*() as their prefs callback.)
svn path=/trunk/; revision=35138
Diffstat (limited to 'asn1/dap')
-rw-r--r--asn1/dap/packet-dap-template.c12
1 files changed, 7 insertions, 5 deletions
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 <epan/strutil.h>
-/* 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 */