OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4199a0
)
android/socket: Use ipc_send_rsp_full IPC helper
author
Szymon Janc
<szymon.janc@tieto.com>
Thu, 28 Nov 2013 14:15:27 +0000
(15:15 +0100)
committer
Luiz Augusto von Dentz
<luiz.von.dentz@intel.com>
Thu, 28 Nov 2013 16:02:27 +0000
(18:02 +0200)
Use command reply helper for sending reply with file descriptor.
android/socket.c
patch
|
blob
|
history
diff --git
a/android/socket.c
b/android/socket.c
index
c2212d9
..
6a5f4e8
100644
(file)
--- a/
android/socket.c
+++ b/
android/socket.c
@@
-909,7
+909,7
@@
void bt_sock_handle_cmd(int sk, uint8_t opcode, void *buf, uint16_t len)
if (fd < 0)
break;
- ipc_send
(sk,
HAL_SERVICE_ID_SOCK, opcode, 0, NULL, fd);
+ ipc_send
_rsp_full(
HAL_SERVICE_ID_SOCK, opcode, 0, NULL, fd);
if (close(fd) < 0)
error("close() fd %d failed: %s", fd, strerror(errno));
@@
-920,7
+920,7
@@
void bt_sock_handle_cmd(int sk, uint8_t opcode, void *buf, uint16_t len)
if (fd < 0)
break;
- ipc_send
(sk,
HAL_SERVICE_ID_SOCK, opcode, 0, NULL, fd);
+ ipc_send
_rsp_full(
HAL_SERVICE_ID_SOCK, opcode, 0, NULL, fd);
if (close(fd) < 0)
error("close() fd %d failed: %s", fd, strerror(errno));