From 3c47f9e73bb3e052ea89c52f8e12f756a8cea027 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Tue, 8 May 2012 17:42:36 +0000 Subject: Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang svn path=/trunk/; revision=42513 --- epan/dissectors/packet-fcgi.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'epan/dissectors/packet-fcgi.c') diff --git a/epan/dissectors/packet-fcgi.c b/epan/dissectors/packet-fcgi.c index 3be25b63dc..81415d35f3 100644 --- a/epan/dissectors/packet-fcgi.c +++ b/epan/dissectors/packet-fcgi.c @@ -141,7 +141,7 @@ dissect_nv_pairs(tvbuff_t *tvb, proto_tree *fcgi_tree, gint offset, guint16 len) } } -static void +static int dissect_begin_request(tvbuff_t *tvb, proto_tree *fcgi_tree, gint offset, guint16 len) { proto_item *br; @@ -159,7 +159,7 @@ dissect_begin_request(tvbuff_t *tvb, proto_tree *fcgi_tree, gint offset, guint16 offset += 5; - return; + return offset; } static void @@ -170,7 +170,7 @@ dissect_abort_request(tvbuff_t *tvb, proto_tree *fcgi_tree, gint offset, guint16 return; } -static void +static int dissect_end_request(tvbuff_t *tvb, proto_tree *fcgi_tree, gint offset, guint16 len) { proto_item *er; @@ -187,7 +187,7 @@ dissect_end_request(tvbuff_t *tvb, proto_tree *fcgi_tree, gint offset, guint16 l offset += 3; - return; + return offset; } static void @@ -318,7 +318,7 @@ dissect_fcgi_record(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if (plen > 0) { proto_tree_add_item(fcgi_tree, hf_fcgi_padding_data, tvb, offset, plen, ENC_NA); - offset += plen; + /*offset += plen;*/ } } } -- cgit v1.2.1