diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2011-10-26 18:01:25 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2011-10-26 18:01:25 +0000 |
commit | bcefa6c2c37a2d7fb5bd5f4c1108a7bacbefff8b (patch) | |
tree | 33074a315d098f00e7d4280507da5628573b8c13 /epan/dissectors/packet-srvloc.c | |
parent | 52ba0a20dbe44e63a0f078777a0443e11738942f (diff) |
Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=39608
Diffstat (limited to 'epan/dissectors/packet-srvloc.c')
-rw-r--r-- | epan/dissectors/packet-srvloc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-srvloc.c b/epan/dissectors/packet-srvloc.c index 786bf1a8a2..be1954b85f 100644 --- a/epan/dissectors/packet-srvloc.c +++ b/epan/dissectors/packet-srvloc.c @@ -804,7 +804,7 @@ dissect_url_entry_v2(tvbuff_t *tvb, int offset, proto_tree *tree) /* Packet dissection routine called by tcp & udp when port 427 detected */ -static void +static int dissect_srvloc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { int offset = 0; @@ -1395,6 +1395,7 @@ dissect_srvloc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) expert_add_info_format(pinfo, expert_item, PI_RESPONSE_CODE, PI_ERROR, "Unknown Function Type: %d", function); } } +return offset; } static guint @@ -1903,7 +1904,7 @@ void proto_reg_handoff_srvloc(void) { dissector_handle_t srvloc_handle, srvloc_tcp_handle; - srvloc_handle = create_dissector_handle(dissect_srvloc, proto_srvloc); + srvloc_handle = new_create_dissector_handle(dissect_srvloc, proto_srvloc); dissector_add_uint("udp.port", UDP_PORT_SRVLOC, srvloc_handle); srvloc_tcp_handle = create_dissector_handle(dissect_srvloc_tcp, proto_srvloc); |