summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2003-04-08 14:51:17 +0000
committerMarcel Holtmann <marcel@holtmann.org>2003-04-08 14:51:17 +0000
commit424f2b1bb5f34a89adc279c216bdf1f032dffa8d (patch)
tree365cd3304184d94170449ac3f1507e8cf3fb2389
parent723681ffa3035a55fe3a293add7e26da0e7296bd (diff)
Cleanup
-rw-r--r--tools/hcitool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/hcitool.c b/tools/hcitool.c
index f2ffb891..04d756eb 100644
--- a/tools/hcitool.c
+++ b/tools/hcitool.c
@@ -655,7 +655,7 @@ static void cmd_cc(int dev_id, int argc, char **argv)
exit(1);
}
- if (0 > hci_create_connection(dd, &bdaddr, ptype, 0, role, &handle, 1000))
+ if (hci_create_connection(dd, &bdaddr, ptype, 0, role, &handle, 1000) < 0)
perror("Can't create connection");
hci_close_dev(dd);
}
@@ -719,7 +719,7 @@ static void cmd_dc(int dev_id, int argc, char **argv)
exit(1);
}
- if (0 > hci_disconnect(dd, cr->conn_info->handle, HCI_OE_USER_ENDED_CONNECTION, 100))
+ if (hci_disconnect(dd, cr->conn_info->handle, HCI_OE_USER_ENDED_CONNECTION, 100) < 0)
perror("Disconnect failed");
close(dd);