diff options
author | alagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7> | 2012-02-06 22:12:59 +0000 |
---|---|---|
committer | alagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7> | 2012-02-06 22:12:59 +0000 |
commit | 5b22308c4798303abe95f0d2497dc568b614258c (patch) | |
tree | a2d609a390aeb0092bd2997b19ae25d7a21e8405 | |
parent | 8d3261c036cf7170fb0ec73bf1673e9c2c422d56 (diff) |
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40899 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r-- | epan/dissectors/packet-gsm_sim.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-gsm_sim.c b/epan/dissectors/packet-gsm_sim.c index 8253265ac7..a8ac4a4b3f 100644 --- a/epan/dissectors/packet-gsm_sim.c +++ b/epan/dissectors/packet-gsm_sim.c @@ -951,10 +951,10 @@ dissect_gsm_apdu(guint8 ins, guint8 p1, guint8 p2, guint8 p3, return -1; } - return 0; + return offset; } -static void +static int dissect_apdu_tvb(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree) { guint8 cla, ins, p1, p2, p3; @@ -1012,7 +1012,7 @@ dissect_apdu_tvb(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree col_append_fstr(pinfo->cinfo, COL_INFO, ": %s ", get_sw_string(sw)); break; } - + return offset; } static void |