kumquat-buildroot/package/ussp-push/ussp-push-fix-build-against-bluez-4.patch
Samuel Martin 87854c12d1 ussp-push: new package
Cc: Eric Jarrige <eric.jarrige@armadeus.org>
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-03-14 00:05:34 +01:00

16 lines
595 B
Diff

Fix build against bluez4.
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
--- ussp-push-0.11.orig/src/obex_socket.c 2012-11-01 09:58:51.049538708 +0100
+++ ussp-push-0.11/src/obex_socket.c 2012-11-01 12:10:10.719506951 +0100
@@ -197,7 +197,7 @@ static int bt_sock_name2bth(int devid, c
for (i = 0; i < niinf; i++) {
char devname[128];
- if (hci_remote_name(dd, &piinf[i].bdaddr, sizeof(devname) - 1,
+ if (hci_read_remote_name(dd, &piinf[i].bdaddr, sizeof(devname) - 1,
devname, 100000) >= 0) {
if (strcasecmp(devname, btname) == 0) {
*btaddr = piinf[i].bdaddr;