diff options
author | Bill Meier <wmeier@newsguy.com> | 2008-09-02 19:08:29 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2008-09-02 19:08:29 +0000 |
commit | 40bd43db835887c90b4278fecae751c6ae33c9eb (patch) | |
tree | 23a8315aa3db2235e9cb026b3cf61a52ee4f0c88 /epan/dissectors/packet-quakeworld.c | |
parent | c63ac0b2e35e2b73a64d1d82f068b4a2297fe09e (diff) |
Minor cleanup (mostly related to proto_reg_handoff...)
svn path=/trunk/; revision=26121
Diffstat (limited to 'epan/dissectors/packet-quakeworld.c')
-rw-r--r-- | epan/dissectors/packet-quakeworld.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-quakeworld.c b/epan/dissectors/packet-quakeworld.c index 2720e3e5a9..1feb93fac5 100644 --- a/epan/dissectors/packet-quakeworld.c +++ b/epan/dissectors/packet-quakeworld.c @@ -771,13 +771,14 @@ dissect_quakeworld(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) void proto_reg_handoff_quakeworld(void) { - static int Initialized=FALSE; + static gboolean Initialized=FALSE; static dissector_handle_t quakeworld_handle; static int ServerPort=0; if (!Initialized) { quakeworld_handle = create_dissector_handle(dissect_quakeworld, proto_quakeworld); + data_handle = find_dissector("data"); Initialized=TRUE; } else { dissector_delete("udp.port", ServerPort, quakeworld_handle); @@ -787,7 +788,6 @@ proto_reg_handoff_quakeworld(void) ServerPort=gbl_quakeworldServerPort; dissector_add("udp.port", gbl_quakeworldServerPort, quakeworld_handle); - data_handle = find_dissector("data"); } |