diff options
author | Bill Meier <wmeier@newsguy.com> | 2008-09-11 14:07:02 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2008-09-11 14:07:02 +0000 |
commit | 802f4452b4a3f6220740f65e4502fc6e32000d38 (patch) | |
tree | 1871cfde9a7d01ff818cefd36c1ec9dc11dab803 /epan/dissectors/packet-beep.c | |
parent | ba292329e05703e5bdbc7fdcc8346a11dc1d8133 (diff) |
Minor cleanup related to proto_reg_handoff ....
svn path=/trunk/; revision=26176
Diffstat (limited to 'epan/dissectors/packet-beep.c')
-rw-r--r-- | epan/dissectors/packet-beep.c | 9 |
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); |