summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2015-12-31 23:08:29 -0800
committerAlan Antonuk <alan.antonuk@gmail.com>2016-04-09 20:23:05 -0700
commit46cb6c521541e34535e0fed3681cfbb13b0c8e57 (patch)
treea23cc260e709962b09dabe9bb4c0433fbcb47595 /examples
parent3b827db3bdefe1d3ac99c439bd2606ee9519d8c8 (diff)
downloadrabbitmq-c-46cb6c521541e34535e0fed3681cfbb13b0c8e57.tar.gz
Examples: fix incorrect shadowing of loop variable
Diffstat (limited to 'examples')
-rw-r--r--examples/utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/utils.c b/examples/utils.c
index 9b5a648..d42c0cb 100644
--- a/examples/utils.c
+++ b/examples/utils.c
@@ -163,7 +163,7 @@ void amqp_dump(void const *buffer, size_t len)
int ch = buf[i];
if (numinrow == 16) {
- int i;
+ int j;
if (rows_eq(oldchs, chs)) {
if (!showed_dots) {
@@ -175,8 +175,8 @@ void amqp_dump(void const *buffer, size_t len)
dump_row(count, numinrow, chs);
}
- for (i=0; i<16; i++) {
- oldchs[i] = chs[i];
+ for (j=0; j<16; j++) {
+ oldchs[j] = chs[j];
}
numinrow = 0;