aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bacapp.c
diff options
context:
space:
mode:
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2010-01-18 21:49:47 +0000
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2010-01-18 21:49:47 +0000
commitb5b17f5994f17cf9b313fc1d2afc5a549ef8419b (patch)
treec50b56a45e65cddff9bc5e5c6a89f6e1ce51d25f /epan/dissectors/packet-bacapp.c
parenta0daeafa7ea5c4b399c4940e7582e97d726cb873 (diff)
Fix a number of gcc _Wshadow warnings
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31557 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-bacapp.c')
-rw-r--r--epan/dissectors/packet-bacapp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-bacapp.c b/epan/dissectors/packet-bacapp.c
index 1879816530..93f08bb83c 100644
--- a/epan/dissectors/packet-bacapp.c
+++ b/epan/dissectors/packet-bacapp.c
@@ -3899,15 +3899,15 @@ static const fragment_items msg_frag_items = {
static const guint MaxAPDUSize [] = { 50,128,206,480,1024,1476 };
static guint
-fGetMaxAPDUSize(guint8 index)
+fGetMaxAPDUSize(guint8 idx)
{
/* only 16 values are defined, so use & 0x0f */
/* check the size of the Array, deliver either the entry
- or the first entry if index is outside of the array (bug 3736 comment#7) */
- if ((index & 0x0f) >= (gint)(sizeof(MaxAPDUSize)/sizeof(guint)))
+ or the first entry if idx is outside of the array (bug 3736 comment#7) */
+ if ((idx & 0x0f) >= (gint)(sizeof(MaxAPDUSize)/sizeof(guint)))
return MaxAPDUSize[0];
else
- return MaxAPDUSize[index & 0x0f];
+ return MaxAPDUSize[idx & 0x0f];
}
/* Used when there are ranges of reserved and proprietary enumerations */