diff options
author | Bill Meier <wmeier@newsguy.com> | 2010-01-18 23:16:10 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2010-01-18 23:16:10 +0000 |
commit | c5614625ee36aaec31e716a2879a2492984a1fed (patch) | |
tree | dc072ea64d05386e4ee2e0239b9cf90f63272e20 /epan/dissectors/packet-lapdm.c | |
parent | f1d4716d18e43916cfa96d1cc3d9832409a3f470 (diff) | |
download | wireshark-c5614625ee36aaec31e716a2879a2492984a1fed.tar.gz |
Fix some gcc -Wshadow warnings ....
svn path=/trunk/; revision=31559
Diffstat (limited to 'epan/dissectors/packet-lapdm.c')
-rw-r--r-- | epan/dissectors/packet-lapdm.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/epan/dissectors/packet-lapdm.c b/epan/dissectors/packet-lapdm.c index 1081268f50..cf05fdffbd 100644 --- a/epan/dissectors/packet-lapdm.c +++ b/epan/dissectors/packet-lapdm.c @@ -212,7 +212,7 @@ dissect_lapdm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { proto_tree *lapdm_tree, *addr_tree, *length_tree; proto_item *lapdm_ti, *addr_ti, *length_ti; - guint8 address, length, cr, sapi, len, n_s; + guint8 addr, length, cr, sapi, len, n_s; int control; gboolean m; tvbuff_t *payload; @@ -225,10 +225,10 @@ dissect_lapdm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) col_set_str(pinfo->cinfo, COL_PROTOCOL, "LAPDm"); - address = tvb_get_guint8(tvb, 0); + addr = tvb_get_guint8(tvb, 0); length = tvb_get_guint8(tvb, 2); - cr = address & LAPDM_CR; + cr = addr & LAPDM_CR; if (pinfo->p2p_dir == P2P_DIR_RECV) { is_response = cr ? FALSE : TRUE; } @@ -240,13 +240,13 @@ dissect_lapdm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) lapdm_ti = proto_tree_add_item(tree, proto_lapdm, tvb, 0, LAPDM_HEADER_LEN, FALSE); lapdm_tree = proto_item_add_subtree(lapdm_ti, ett_lapdm); - addr_ti = proto_tree_add_uint(lapdm_tree, hf_lapdm_address, tvb, 0, 1, address); + addr_ti = proto_tree_add_uint(lapdm_tree, hf_lapdm_address, tvb, 0, 1, addr); addr_tree = proto_item_add_subtree(addr_ti, ett_lapdm_address); - proto_tree_add_uint(addr_tree, hf_lapdm_lpd, tvb, 0, 1, address); - proto_tree_add_uint(addr_tree, hf_lapdm_sapi, tvb, 0, 1, address); - proto_tree_add_uint(addr_tree, hf_lapdm_cr, tvb, 0, 1, address); - proto_tree_add_uint(addr_tree, hf_lapdm_ea, tvb, 0, 1, address); + proto_tree_add_uint(addr_tree, hf_lapdm_lpd, tvb, 0, 1, addr); + proto_tree_add_uint(addr_tree, hf_lapdm_sapi, tvb, 0, 1, addr); + proto_tree_add_uint(addr_tree, hf_lapdm_cr, tvb, 0, 1, addr); + proto_tree_add_uint(addr_tree, hf_lapdm_ea, tvb, 0, 1, addr); } else { lapdm_ti = NULL; @@ -267,7 +267,7 @@ dissect_lapdm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree_add_uint(length_tree, hf_lapdm_el, tvb, 2, 1, length); } - sapi = (address & LAPDM_SAPI) >> LAPDM_SAPI_SHIFT; + sapi = (addr & LAPDM_SAPI) >> LAPDM_SAPI_SHIFT; len = (length & LAPDM_LEN) >> LAPDM_LEN_SHIFT; n_s = (control & XDLC_N_S_MASK) >> XDLC_N_S_SHIFT; m = (length & LAPDM_M) >> LAPDM_M_SHIFT; |