summaryrefslogtreecommitdiff
path: root/android/pan.c
diff options
context:
space:
mode:
authorGrzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com>2015-02-19 15:16:35 +0100
committerSzymon Janc <szymon.janc@tieto.com>2015-02-26 09:35:27 +0100
commitfba2e63376c1eae1515765f21a8ab74a418379f3 (patch)
tree1b97a5709411f057974da2ab9e9fa5898650a807 /android/pan.c
parentd855a28b88c4a10246d6a6188bc5c52262ae734a (diff)
downloadbluez-fba2e63376c1eae1515765f21a8ab74a418379f3.tar.gz
android/pan: Return correct error value
If problem with bt_io_listen occurs the input/output error is the most aproperiate error code to problem rather than invalid argument error code.
Diffstat (limited to 'android/pan.c')
-rw-r--r--android/pan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/pan.c b/android/pan.c
index 347180514..972af89b8 100644
--- a/android/pan.c
+++ b/android/pan.c
@@ -636,7 +636,7 @@ static int register_nap_server(void)
destroy_nap_device();
error("%s", gerr->message);
g_error_free(gerr);
- return -EINVAL;
+ return -EIO;
}
return 0;