summaryrefslogtreecommitdiff
path: root/asn1/dsp/packet-dsp-template.c
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/dsp/packet-dsp-template.c
parentc0565d89362a36ca02780196fa69f2330ffee5c3 (diff)
downloadwireshark-f2fc5d42fd948d408a9362b8db7024d1cc209696.tar.gz
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/dsp/packet-dsp-template.c')
-rw-r--r--asn1/dsp/packet-dsp-template.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/asn1/dsp/packet-dsp-template.c b/asn1/dsp/packet-dsp-template.c
index 2b48984c52..ead5645948 100644
--- a/asn1/dsp/packet-dsp-template.c
+++ b/asn1/dsp/packet-dsp-template.c
@@ -51,7 +51,7 @@
static guint global_dsp_tcp_port = 102;
static dissector_handle_t tpkt_handle;
-void prefs_register_dsp(void); /* forward declaration for use in preferences registration */
+static void prefs_register_dsp(void); /* forward declaration for use in preferences registration */
/* Initialize the protocol and registered fields */
@@ -88,7 +88,7 @@ dissect_dsp(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) );
@@ -306,24 +306,26 @@ void proto_register_dsp(void) {
void proto_reg_handoff_dsp(void) {
dissector_handle_t dsp_handle;
-#include "packet-dsp-dis-tab.c"
+#include "packet-dsp-dis-tab.c"
/* APPLICATION CONTEXT */
oid_add_from_string("id-ac-directory-system","2.5.3.2");
/* ABSTRACT SYNTAXES */
-
+
/* remember the tpkt handler for change in preferences */
tpkt_handle = find_dissector("tpkt");
/* Register DSP with ROS (with no use of RTSE) */
dsp_handle = find_dissector("dsp");
- register_ros_oid_dissector_handle("2.5.9.2", dsp_handle, 0, "id-as-directory-system", FALSE);
+ register_ros_oid_dissector_handle("2.5.9.2", dsp_handle, 0, "id-as-directory-system", FALSE);
}
-void prefs_register_dsp(void) {
+static void
+prefs_register_dsp(void)
+{
static guint tcp_port = 0;
/* de-register the old port */