diff options
author | Martin Kaiser <wireshark@kaiser.cx> | 2013-03-05 20:17:29 +0000 |
---|---|---|
committer | Martin Kaiser <wireshark@kaiser.cx> | 2013-03-05 20:17:29 +0000 |
commit | 47a8a496f11f1da2bba033eab2d5b8999172c94e (patch) | |
tree | 9ebd650c063a2a92301d64c3234dcf0cd9cdd3a3 /epan/dissectors/packet-bssgp.c | |
parent | dcf054dd5e6ff5d055be13bb713c94a033f3a295 (diff) |
fix
packet-bssgp.c: In function 'de_bssgp_unconfim_send_state_var':
packet-bssgp.c:3318:13: error: variable 'state_var' set but not used [-Werror=unused-but-set-variable]
svn path=/trunk/; revision=48095
Diffstat (limited to 'epan/dissectors/packet-bssgp.c')
-rw-r--r-- | epan/dissectors/packet-bssgp.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/epan/dissectors/packet-bssgp.c b/epan/dissectors/packet-bssgp.c index ab5533d33c..b2492d925e 100644 --- a/epan/dissectors/packet-bssgp.c +++ b/epan/dissectors/packet-bssgp.c @@ -3314,16 +3314,8 @@ de_bssgp_redir_complete(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, static guint16 de_bssgp_unconfim_send_state_var(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, guint32 offset, guint len _U_, gchar *add_string _U_, int string_len _U_) { - guint32 curr_offset; - guint16 state_var; - - curr_offset = offset; - state_var = tvb_get_ntohs(tvb, curr_offset); - - proto_tree_add_item(tree, hf_bssgp_unconfim_send_state_var, tvb, curr_offset, 2, ENC_BIG_ENDIAN); - curr_offset += 2; - - return(curr_offset-offset); + proto_tree_add_item(tree, hf_bssgp_unconfim_send_state_var, tvb, offset, 2, ENC_BIG_ENDIAN); + return 2; } const value_string bssgp_elem_strings[] = { |