From b5b17f5994f17cf9b313fc1d2afc5a549ef8419b Mon Sep 17 00:00:00 2001 From: wmeier Date: Mon, 18 Jan 2010 21:49:47 +0000 Subject: Fix a number of gcc _Wshadow warnings git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31557 f5534014-38df-0310-8fa8-9805f1628bb7 --- epan/dissectors/packet-bacapp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'epan/dissectors/packet-bacapp.c') 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 */ -- cgit v1.2.3