1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
Description: Fix FTBFS with clang
Author: Arthur Marble <arthur@info9.net>
Bug-Debian: https://bugs.debian.org/740036
--- a/bluetooth-monitor.c
+++ b/bluetooth-monitor.c
@@ -296,8 +296,7 @@ int get_link_qual(btdev_t* btdev)
if (opts.linkquality || args.linkquality) {
cr = malloc(sizeof(*cr) + sizeof(struct hci_conn_info));
if (!cr)
- return;
-
+ return 0;
bacpy(&cr->bdaddr, &(btdev->bdaddr));
cr->type = ACL_LINK;
if (ioctl(btdev->dd, HCIGETCONNINFO, (unsigned long) cr) < 0) {
|