From: Jose Antonio Santos Cadenas <santoscadenas@xxxxxxxxx> --- mcap/mcap.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/mcap/mcap.c b/mcap/mcap.c index 30a8d56..b3017fb 100644 --- a/mcap/mcap.c +++ b/mcap/mcap.c @@ -29,6 +29,7 @@ #include <netinet/in.h> #include <stdlib.h> +#include <errno.h> #include "mcap.h" #include "mcap_lib.h" @@ -640,7 +641,7 @@ static struct mcap_mcl *find_mcl(GSList *list, const bdaddr_t *addr) int mcap_mdl_get_fd(struct mcap_mdl *mdl) { if ((!mdl) || (mdl->state != MDL_CONNECTED)) - return -1; + return -ENOTCONN; return g_io_channel_unix_get_fd(mdl->dc); } -- 1.6.3.3 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html