aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-xtp.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-07-18 15:52:16 +0000
committerBill Meier <wmeier@newsguy.com>2011-07-18 15:52:16 +0000
commit5db6069274816275aca989e6494407fb50752954 (patch)
treeb048cb08c9e7127b401bb59ae2aa9c14e5d7c9b8 /epan/dissectors/packet-xtp.c
parente4b18600fbcdc40ae625abd174161238143b5771 (diff)
Fix gcc 4.6 "set but not used [-Wunused-but-set-variable]" warnings.
svn path=/trunk/; revision=38085
Diffstat (limited to 'epan/dissectors/packet-xtp.c')
-rw-r--r--epan/dissectors/packet-xtp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/epan/dissectors/packet-xtp.c b/epan/dissectors/packet-xtp.c
index f8c5b57e1d..ddd804868d 100644
--- a/epan/dissectors/packet-xtp.c
+++ b/epan/dissectors/packet-xtp.c
@@ -322,7 +322,7 @@ static gint ett_xtp_diag = -1;
static int
dissect_xtp_aseg(tvbuff_t *tvb, proto_tree *tree, guint32 offset) {
guint32 len = tvb_length_remaining(tvb, offset);
- guint32 start = offset, start2;
+ guint32 start = offset;
proto_item *ti, *ti2, *top_ti;
proto_tree *xtp_subtree;
struct xtp_ip_addr_seg aseg[1];
@@ -395,7 +395,6 @@ dissect_xtp_aseg(tvbuff_t *tvb, proto_tree *tree, guint32 offset) {
return (offset - start);
/** parse and display each address fileds */
- start2 = offset;
switch (aseg->aformat) {
case 0:
/* address(4) */
@@ -518,7 +517,7 @@ dissect_xtp_traffic_cntl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
static int
dissect_xtp_tspec(tvbuff_t *tvb, proto_tree *tree, guint32 offset) {
guint32 len = tvb_length_remaining(tvb, offset);
- guint32 start = offset, start2;
+ guint32 start = offset;
proto_item *ti, *ti2;
proto_tree *xtp_subtree;
struct xtp_traffic_spec1 tspec[1];
@@ -590,7 +589,6 @@ dissect_xtp_tspec(tvbuff_t *tvb, proto_tree *tree, guint32 offset) {
return (offset - start);
/** parse and display each traffic fields **/
- start2 = offset;
switch (tspec->tformat) {
case 0:
/* traffic(4) */