summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-fcgi.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2012-05-08 17:42:36 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2012-05-08 17:42:36 +0000
commit3c47f9e73bb3e052ea89c52f8e12f756a8cea027 (patch)
tree389168bdc816898d571b8b6efddcc5189ecf4cf6 /epan/dissectors/packet-fcgi.c
parentc16cd8f997cc0b2b7a909e57fe906d39028a8a89 (diff)
downloadwireshark-3c47f9e73bb3e052ea89c52f8e12f756a8cea027.tar.gz
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=42513
Diffstat (limited to 'epan/dissectors/packet-fcgi.c')
-rw-r--r--epan/dissectors/packet-fcgi.c10
1 files changed, 5 insertions, 5 deletions
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;*/
}
}
}