diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2012-01-13 16:34:32 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2012-01-13 16:34:32 +0000 |
commit | 0e876f1ab2751ffdbdf05ead82f10aab1cbfcd65 (patch) | |
tree | cde548ce16c8745520b45abc59ec2bb053952927 /epan/dissectors/packet-x224.c | |
parent | fbb00bdce073a6a32dc31aa1a3a5d8410b63613a (diff) |
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=40472
Diffstat (limited to 'epan/dissectors/packet-x224.c')
-rw-r--r-- | epan/dissectors/packet-x224.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-x224.c b/epan/dissectors/packet-x224.c index 3fc8f58a42..164ec91880 100644 --- a/epan/dissectors/packet-x224.c +++ b/epan/dissectors/packet-x224.c @@ -178,7 +178,7 @@ dissect_x224_dt(packet_info *pinfo _U_, proto_tree *tree, tvbuff_t *tvb, int off return offset; } -static void +static int dissect_x224(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) { proto_tree *tree = NULL; @@ -267,6 +267,7 @@ dissect_x224(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) /* XXX not implemented yet */ break; } +return offset; } void @@ -316,7 +317,7 @@ proto_register_x224(void) proto_x224 = proto_register_protocol("ITU-T Rec X.224", "X.224", "x224"); proto_register_field_array(proto_x224, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); - register_dissector("x224", dissect_x224, proto_x224); + new_register_dissector("x224", dissect_x224, proto_x224); } |