aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-quake3.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-quake3.c')
-rw-r--r--epan/dissectors/packet-quake3.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/dissectors/packet-quake3.c b/epan/dissectors/packet-quake3.c
index f1c7838bdb..115f718827 100644
--- a/epan/dissectors/packet-quake3.c
+++ b/epan/dissectors/packet-quake3.c
@@ -432,8 +432,8 @@ dissect_quake3_GamePacket(tvbuff_t *tvb, packet_info *pinfo,
}
-static void
-dissect_quake3(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+static int
+dissect_quake3(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
{
proto_tree *quake3_tree = NULL;
proto_item *dir_item = NULL;
@@ -483,6 +483,7 @@ dissect_quake3(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
col_append_str(pinfo->cinfo, COL_INFO, val_to_str(direction,
names_direction, "%u"));
+ return tvb_captured_length(tvb);
}
@@ -587,7 +588,7 @@ proto_reg_handoff_quake3(void)
int i;
if (!initialized) {
- quake3_handle = create_dissector_handle(dissect_quake3,
+ quake3_handle = new_create_dissector_handle(dissect_quake3,
proto_quake3);
data_handle = find_dissector("data");
initialized=TRUE;