aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-clnp.c
diff options
context:
space:
mode:
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2008-06-23 21:53:24 +0000
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2008-06-23 21:53:24 +0000
commit2424dce445adbeefe0e7545aec4d011efbfdc2af (patch)
tree938f1c9ef63a5de1c34d0d27962846517674d353 /epan/dissectors/packet-clnp.c
parentebb405832fb946ac7ef1636d2ed786c084512f7d (diff)
Renamed some local variables to avoid name collisions.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25565 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-clnp.c')
-rw-r--r--epan/dissectors/packet-clnp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-clnp.c b/epan/dissectors/packet-clnp.c
index 11c14cb3a8..2dc8643280 100644
--- a/epan/dissectors/packet-clnp.c
+++ b/epan/dissectors/packet-clnp.c
@@ -429,7 +429,7 @@ static gchar *print_tsap(const guchar *tsap, int length)
gchar *cur;
gboolean allprintable;
- size_t index = 0, returned_length;
+ size_t idx = 0, returned_length;
cur=ep_alloc(MAX_TSAP_LEN * 2 + 3);
cur[0] = '\0';
@@ -439,15 +439,15 @@ static gchar *print_tsap(const guchar *tsap, int length)
allprintable = is_all_printable(tsap,length);
if (!allprintable) {
returned_length = g_snprintf(cur, MAX_TSAP_LEN * 2 + 3, "0x");
- index += MIN(returned_length, MAX_TSAP_LEN * 2 + 3 - 1);
+ idx += MIN(returned_length, MAX_TSAP_LEN * 2 + 3 - 1);
}
while (length != 0) {
if (allprintable) {
- returned_length = g_snprintf(&cur[index], MAX_TSAP_LEN * 2 + 3 - index, "%c", *tsap ++);
- index += MIN(returned_length, MAX_TSAP_LEN * 2 + 3 - index - 1 );
+ returned_length = g_snprintf(&cur[idx], MAX_TSAP_LEN * 2 + 3 - idx, "%c", *tsap ++);
+ idx += MIN(returned_length, MAX_TSAP_LEN * 2 + 3 - idx - 1 );
} else {
- returned_length = g_snprintf(&cur[index], MAX_TSAP_LEN * 2 + 3 - index, "%02x", *tsap ++);
- index += MIN(returned_length, MAX_TSAP_LEN * 2 + 3 - index - 1);
+ returned_length = g_snprintf(&cur[idx], MAX_TSAP_LEN * 2 + 3 - idx, "%02x", *tsap ++);
+ idx += MIN(returned_length, MAX_TSAP_LEN * 2 + 3 - idx - 1);
}
length --;
}