From fba2e63376c1eae1515765f21a8ab74a418379f3 Mon Sep 17 00:00:00 2001 From: Grzegorz Kolodziejczyk Date: Thu, 19 Feb 2015 15:16:35 +0100 Subject: [PATCH] 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. --- android/pan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3