summaryrefslogtreecommitdiff
path: root/tools/hciconfig.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-01-29 17:58:28 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-01-29 17:58:28 +0100
commit9c0b5859e6cc4b7a0e925fde8665990281b265d3 (patch)
tree8994dbe0942d56c9a7cf470fc3b2316d1f91e0a3 /tools/hciconfig.c
parent1ce81e1e0794a5d619016e17b33b533b614fc6a9 (diff)
downloadbluez-9c0b5859e6cc4b7a0e925fde8665990281b265d3.tar.gz
Fix mostly every warning caused by -Wsign-compare
Diffstat (limited to 'tools/hciconfig.c')
-rw-r--r--tools/hciconfig.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/hciconfig.c b/tools/hciconfig.c
index 46ca16930..960f450bd 100644
--- a/tools/hciconfig.c
+++ b/tools/hciconfig.c
@@ -688,12 +688,13 @@ static void cmd_class(int ctl, int hdev, char *opt)
printf("\tClass: 0x%02x%02x%02x\n", cls[2], cls[1], cls[0]);
printf("\tService Classes: ");
if (cls[2]) {
+ unsigned int i;
int first = 1;
- for (s = 0; s < (sizeof(services) / sizeof(*services)); s++)
- if (cls[2] & (1 << s)) {
+ for (i = 0; i < (sizeof(services) / sizeof(*services)); i++)
+ if (cls[2] & (1 << i)) {
if (!first)
printf(", ");
- printf("%s", services[s]);
+ printf("%s", services[i]);
first = 0;
}
} else