aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dap.c
diff options
context:
space:
mode:
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>2010-12-06 22:08:48 +0000
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>2010-12-06 22:08:48 +0000
commitf766befd84bc707d2d446e2de889af4566567731 (patch)
tree051a8cba576212c18f1feff3d86ea30b8d6e129a /epan/dissectors/packet-dap.c
parentb9c4c74afb07425fbb45cf5cb2e8232238d86291 (diff)
Make some prefs callback functions static. (These modules don't use proto_reg_handoff_*() as their prefs callback.)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35138 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-dap.c')
-rw-r--r--epan/dissectors/packet-dap.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/epan/dissectors/packet-dap.c b/epan/dissectors/packet-dap.c
index fc3a6550f8..01c11accbd 100644
--- a/epan/dissectors/packet-dap.c
+++ b/epan/dissectors/packet-dap.c
@@ -56,7 +56,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"
@@ -64,7 +64,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 */
@@ -6693,9 +6693,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");
@@ -6713,7 +6713,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 */