diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2003-04-08 14:51:17 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2003-04-08 14:51:17 +0000 |
commit | 424f2b1bb5f34a89adc279c216bdf1f032dffa8d (patch) | |
tree | 365cd3304184d94170449ac3f1507e8cf3fb2389 /tools/hcitool.c | |
parent | 723681ffa3035a55fe3a293add7e26da0e7296bd (diff) |
Cleanup
Diffstat (limited to 'tools/hcitool.c')
-rw-r--r-- | tools/hcitool.c | 4 |
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); |