aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-linx.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2013-09-02 23:12:21 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2013-09-02 23:12:21 +0000
commit6a23fa0860f4b7b3fe9f003a2c78743e43f96858 (patch)
tree5ee9f57104fe31d24ab64a6fc2e19865f6fc2a68 /epan/dissectors/packet-linx.c
parenta1d2587f412f49f808065813d0d3c548883f2a4b (diff)
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=51663
Diffstat (limited to 'epan/dissectors/packet-linx.c')
-rw-r--r--epan/dissectors/packet-linx.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/epan/dissectors/packet-linx.c b/epan/dissectors/packet-linx.c
index e55aeb264c..42661312ca 100644
--- a/epan/dissectors/packet-linx.c
+++ b/epan/dissectors/packet-linx.c
@@ -433,7 +433,6 @@ dissect_linx(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
*/
- dword = tvb_get_ntohl(linx_tvb, offset);
/* how many sequence numbers will be there? */
/* this is not implemented due to a lack of documentation with */
/* longer seqence numbers. */
@@ -925,40 +924,40 @@ dissect_linx_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree_add_item(rlnh_header_tree, hf_linx_tcp_rlnh_src_linkaddr, linx_tcp_tvb, offset, 4, ENC_BIG_ENDIAN);
offset += 4;
proto_tree_add_item(rlnh_header_tree, hf_linx_tcp_rlnh_name, linx_tcp_tvb, offset, -1, ENC_ASCII|ENC_NA);
- offset += tvb_strnlen(linx_tcp_tvb, offset, -1);
+ /*offset += tvb_strnlen(linx_tcp_tvb, offset, -1);*/
break;
case RLNH_PUBLISH:
proto_tree_add_item(rlnh_header_tree, hf_linx_tcp_rlnh_src_linkaddr, linx_tcp_tvb, offset, 4, ENC_BIG_ENDIAN);
offset += 4;
proto_tree_add_item(rlnh_header_tree, hf_linx_tcp_rlnh_name, linx_tcp_tvb, offset, -1, ENC_ASCII|ENC_NA);
- offset += tvb_strnlen(linx_tcp_tvb, offset, -1);
+ /*offset += tvb_strnlen(linx_tcp_tvb, offset, -1);*/
break;
case RLNH_UNPUBLISH:
proto_tree_add_item(rlnh_header_tree, hf_linx_tcp_rlnh_src_linkaddr, linx_tcp_tvb, offset, 4, ENC_BIG_ENDIAN);
- offset += 4;
+ /*offset += 4;*/
break;
case RLNH_UNPUBLISH_ACK:
proto_tree_add_item(rlnh_header_tree, hf_linx_tcp_rlnh_src_linkaddr, linx_tcp_tvb, offset, 4, ENC_BIG_ENDIAN);
- offset += 4;
+ /*offset += 4;*/
break;
case RLNH_INIT:
proto_tree_add_item(rlnh_header_tree, hf_linx_tcp_rlnh_version, linx_tcp_tvb, offset, 4, ENC_BIG_ENDIAN);
rlnh_version = tvb_get_ntohl(linx_tcp_tvb, offset);
- offset += 4;
+ /*offset += 4;*/
break;
case RLNH_INIT_REPLY:
proto_tree_add_item(rlnh_header_tree, hf_linx_tcp_rlnh_status, linx_tcp_tvb, offset, 4, ENC_BIG_ENDIAN);
offset += 4;
if(rlnh_version > 1) {
proto_tree_add_item(rlnh_header_tree, hf_linx_tcp_rlnh_feat_neg_str, linx_tcp_tvb, offset, -1, ENC_ASCII|ENC_NA);
- offset += tvb_strnlen(linx_tcp_tvb, offset, -1);
+ /*offset += tvb_strnlen(linx_tcp_tvb, offset, -1);*/
}
break;
case RLNH_PUBLISH_PEER:
proto_tree_add_item(rlnh_header_tree, hf_linx_tcp_rlnh_src_linkaddr, linx_tcp_tvb, offset, 4, ENC_BIG_ENDIAN);
offset += 4;
proto_tree_add_item(rlnh_header_tree, hf_linx_tcp_rlnh_peer_linkaddr, linx_tcp_tvb, offset, -1, ENC_BIG_ENDIAN);
- offset += tvb_strnlen(linx_tcp_tvb, offset, -1);
+ /*offset += tvb_strnlen(linx_tcp_tvb, offset, -1);*/
break;
default:
/* No known Message type */