summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);