PKGBUILDs/community/ussp-push/ussp-push-remote-name.patch
2009-10-09 21:15:33 -05:00

12 lines
595 B
Diff

diff -dupr ussp-push-0.11.old/src/obex_socket.c ussp-push-0.11/src/obex_socket.c
--- ussp-push-0.11.old/src/obex_socket.c 2009-05-15 11:03:34.904797689 +0200
+++ ussp-push-0.11/src/obex_socket.c 2009-05-15 11:03:45.599797286 +0200
@@ -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;