diff --git a/tools/btmgmt.c b/tools/btmgmt.c
index 5cc5333..19757a1 100644
--- a/tools/btmgmt.c
+++ b/tools/btmgmt.c
static bool interactive = false;
static int exit_status = EXIT_SUCCESS;
-static int pending = 0;
+static int pending_index = 0;
#ifndef MIN
#define MIN(x, y) ((x) < (y) ? (x) : (y))
uint16_t index = PTR_TO_UINT(user_data);
char addr[18];
- pending--;
+ pending_index--;
if (status != 0) {
error("Reading hci%u info failed with status 0x%02x (%s)",
print("\tname %s", rp->name);
print("\tshort name %s", rp->short_name);
- if (pending > 0)
+ if (pending_index > 0)
return;
done:
return noninteractive_quit(EXIT_FAILURE);
}
- pending++;
+ pending_index++;
}
if (!count)