File: clang-ftbfs.patch

package info (click to toggle)
bluemon 1.4-11
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 288 kB
  • sloc: ansic: 2,567; makefile: 305; sh: 104; xml: 24
file content (16 lines) | stat: -rw-r--r-- 530 bytes parent folder | download | duplicates (4)
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) {