aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-beep.c
diff options
context:
space:
mode:
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2008-09-11 14:07:02 +0000
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2008-09-11 14:07:02 +0000
commit007813964c4564970fad1fecf00a01d68505e671 (patch)
tree1871cfde9a7d01ff818cefd36c1ec9dc11dab803 /epan/dissectors/packet-beep.c
parentcba041614905a545bb151e7468328e9b3ec99a6d (diff)
Minor cleanup related to proto_reg_handoff ....
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26176 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-beep.c')
-rw-r--r--epan/dissectors/packet-beep.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/epan/dissectors/packet-beep.c b/epan/dissectors/packet-beep.c
index 477b7a1f05..0fedc6634b 100644
--- a/epan/dissectors/packet-beep.c
+++ b/epan/dissectors/packet-beep.c
@@ -96,8 +96,6 @@ static int ett_mime_header = -1;
static int ett_header = -1;
static int ett_trailer = -1;
-static guint tcp_port = 0;
-
/* Get the state of the more flag ... */
#define BEEP_VIOL 0
@@ -486,7 +484,7 @@ set_mime_hdr_flags(int more, struct beep_request_val *request_val,
if (!request_val) return; /* Nothing to do ??? */
- if (pinfo->destport == tcp_port) { /* Going to the server ... client */
+ if (pinfo->destport == global_beep_tcp_port) { /* Going to the server ... client */
if (request_val->c_mime_hdr) {
@@ -1094,6 +1092,7 @@ proto_reg_handoff_beep(void)
{
static gboolean beep_prefs_initialized = FALSE;
static dissector_handle_t beep_handle;
+ static guint beep_tcp_port;
if (!beep_prefs_initialized) {
@@ -1104,13 +1103,13 @@ proto_reg_handoff_beep(void)
}
else {
- dissector_delete("tcp.port", tcp_port, beep_handle);
+ dissector_delete("tcp.port", beep_tcp_port, beep_handle);
}
/* Set our port number for future use */
- tcp_port = global_beep_tcp_port;
+ beep_tcp_port = global_beep_tcp_port;
dissector_add("tcp.port", global_beep_tcp_port, beep_handle);