diff options
author | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-04-27 18:09:39 +0000 |
---|---|---|
committer | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-04-27 18:09:39 +0000 |
commit | 1a9ab4c8c6400d070a9dfbbf5ed435b213157a8f (patch) | |
tree | 5436097154e48a0b8ee69cdb953b5f0c7bb27c10 /epan/dissectors | |
parent | 57ee68a63b636c4d24275dfc532b8af2286cb1d3 (diff) |
From Yaniv Kaul:
Some fixes for 'set but not used' errors that GCC 4.6 emits.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36911 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-cip.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/epan/dissectors/packet-cip.c b/epan/dissectors/packet-cip.c index 41688cd2d8..2811a7516d 100644 --- a/epan/dissectors/packet-cip.c +++ b/epan/dissectors/packet-cip.c @@ -1493,9 +1493,9 @@ typedef struct mr_mult_req_info { service = tvb_get_guint8( tvb, offset ); proto_item_append_text( rrsc_item, "%s (%s)", - val_to_str( ( tvb_get_guint8( tvb, offset ) & 0x7F ), + val_to_str( ( service & 0x7F ), cip_sc_vals, "Unknown Service (0x%02x)"), - val_to_str( ( tvb_get_guint8( tvb, offset ) & 0x80 )>>7, + val_to_str( ( service & 0x80 )>>7, cip_sc_rr, "") ); /* Add Service code */ @@ -1848,9 +1848,9 @@ dissect_cip_cm_data( proto_tree *item_tree, tvbuff_t *tvb, int offset, int item_ /* watch for service collisions */ service = tvb_get_guint8( tvb, offset ); proto_item_append_text( rrsc_item, "%s (%s)", - val_to_str( ( tvb_get_guint8( tvb, offset ) & 0x7F ), + val_to_str( ( service & 0x7F ), cip_sc_vals_cm , "Unknown Service (0x%02x)"), - val_to_str( ( tvb_get_guint8( tvb, offset ) & 0x80 )>>7, + val_to_str( ( service & 0x80 )>>7, cip_sc_rr, "") ); /* Add Service code */ @@ -2556,9 +2556,9 @@ dissect_cip_data( proto_tree *item_tree, tvbuff_t *tvb, int offset, packet_info /* watch for service collisions */ service = tvb_get_guint8( tvb, offset ); proto_item_append_text( rrsc_item, "%s (%s)", - val_to_str( ( tvb_get_guint8( tvb, offset ) & 0x7F ), + val_to_str( ( service & 0x7F ), cip_sc_vals , "Unknown Service (0x%02x)"), - val_to_str( ( tvb_get_guint8( tvb, offset ) & 0x80 )>>7, + val_to_str( ( service & 0x80 )>>7, cip_sc_rr, "") ); /* Add Service code */ @@ -2573,7 +2573,7 @@ dissect_cip_data( proto_tree *item_tree, tvbuff_t *tvb, int offset, packet_info /* Add general status */ gen_status = tvb_get_guint8( tvb, offset+2 ); proto_tree_add_item(status_tree, hf_cip_genstat, tvb, offset+2, 1, TRUE ); - proto_item_append_text( status_item, "%s", val_to_str( ( tvb_get_guint8( tvb, offset+2 ) ), + proto_item_append_text( status_item, "%s", val_to_str( gen_status, cip_gs_vals , "Unknown Response (%x)") ); /* Add reply status to info column */ |