summaryrefslogtreecommitdiff
path: root/tools/btproxy.c
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2015-04-28 14:43:23 +0200
committerSzymon Janc <szymon.janc@tieto.com>2015-04-28 14:44:48 +0200
commit1c01a9f3183c19ce14d8d4db7f545499e2cac4a2 (patch)
treee689dc3212a874a49f896b8e830446b622184d82 /tools/btproxy.c
parent05e124ab1d214dfbdc523807789b67edf3adee5a (diff)
downloadbluez-1c01a9f3183c19ce14d8d4db7f545499e2cac4a2.tar.gz
tools/btproxy: Return proper type in setup_proxy
This function retuns bool.
Diffstat (limited to 'tools/btproxy.c')
-rw-r--r--tools/btproxy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/btproxy.c b/tools/btproxy.c
index 43ccac17d..137172367 100644
--- a/tools/btproxy.c
+++ b/tools/btproxy.c
@@ -334,7 +334,7 @@ static bool setup_proxy(int host_fd, bool host_shutdown,
proxy = new0(struct proxy, 1);
if (!proxy)
- return NULL;
+ return false;
proxy->host_fd = host_fd;
proxy->host_shutdown = host_shutdown;