summaryrefslogtreecommitdiff
path: root/asn1/dop/packet-dop-template.c
diff options
context:
space:
mode:
Diffstat (limited to 'asn1/dop/packet-dop-template.c')
-rw-r--r--asn1/dop/packet-dop-template.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/asn1/dop/packet-dop-template.c b/asn1/dop/packet-dop-template.c
index ba40557254..5ccc260bcc 100644
--- a/asn1/dop/packet-dop-template.c
+++ b/asn1/dop/packet-dop-template.c
@@ -54,7 +54,7 @@
static guint global_dop_tcp_port = 102;
static dissector_handle_t tpkt_handle;
-void prefs_register_dop(void); /* forward declaration for use in preferences registration */
+static void prefs_register_dop(void); /* forward declaration for use in preferences registration */
/* Initialize the protocol and registered fields */
static int proto_dop = -1;
@@ -132,7 +132,7 @@ dissect_dop(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
if(parent_tree){
proto_tree_add_text(parent_tree, tvb, offset, -1,
"Internal error: can't get operation information from ROS dissector.");
- }
+ }
return ;
} else {
session = ( (struct SESSION_DATA_STRUCTURE*)(pinfo->private_data) );
@@ -277,16 +277,16 @@ void proto_register_dop(void) {
void proto_reg_handoff_dop(void) {
dissector_handle_t dop_handle;
-#include "packet-dop-dis-tab.c"
+#include "packet-dop-dis-tab.c"
/* APPLICATION CONTEXT */
oid_add_from_string("id-ac-directory-operational-binding-management","2.5.3.3");
/* ABSTRACT SYNTAXES */
-
+
/* Register DOP with ROS (with no use of RTSE) */
dop_handle = find_dissector("dop");
- register_ros_oid_dissector_handle("2.5.9.4", dop_handle, 0, "id-as-directory-operational-binding-management", FALSE);
+ register_ros_oid_dissector_handle("2.5.9.4", dop_handle, 0, "id-as-directory-operational-binding-management", FALSE);
/* BINDING TYPES */
@@ -316,7 +316,9 @@ void proto_reg_handoff_dop(void) {
}
-void prefs_register_dop(void) {
+static void
+prefs_register_dop(void)
+{
static guint tcp_port = 0;
/* de-register the old port */