summaryrefslogtreecommitdiff
path: root/android/socket.c
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@gmail.com>2014-01-04 21:16:12 +0100
committerJohan Hedberg <johan.hedberg@intel.com>2014-01-06 21:25:43 +0200
commite99c1dbd3318517f62a569779bd990f89a60fae7 (patch)
tree87051e0f65abfa3144a36cc590bab0a9782d64e3 /android/socket.c
parent3e5e6c76183f3710d9d416bfbbd00c4e8fcbe0c3 (diff)
downloadbluez-e99c1dbd3318517f62a569779bd990f89a60fae7.tar.gz
android/socket: Make channel int32_t in IPC specification
This match IPC type with type in socket HAL API. This allows to pass data directly from HAL library and will allow to reduce logic in it.
Diffstat (limited to 'android/socket.c')
-rw-r--r--android/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/socket.c b/android/socket.c
index 11d64f89c..f68fbf0c8 100644
--- a/android/socket.c
+++ b/android/socket.c
@@ -804,7 +804,7 @@ static void handle_listen(const void *buf, uint16_t len)
profile = get_profile_by_uuid(cmd->uuid);
if (!profile) {
- if (!cmd->channel)
+ if (cmd->channel <= 0)
goto failed;
chan = cmd->channel;