From 75e50f781b44cdd8db1911eaee1bc5b4c949f9d9 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Sat, 18 Feb 2012 17:18:59 +0200 Subject: gobex: Use ENOSYS to correspond to OBEX not implemented ENOSYS correspond to function not implemented which is exactly what the OBEX error code means. Also since EINVAL means invalid argument that now map to OBEX bad request --- gobex/gobex.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gobex/gobex.c b/gobex/gobex.c index 0ced782e7..066574902 100644 --- a/gobex/gobex.c +++ b/gobex/gobex.c @@ -1482,11 +1482,12 @@ guint8 g_obex_errno_to_rsp(int err) return G_OBEX_RSP_FORBIDDEN; case -ENOENT: return G_OBEX_RSP_NOT_FOUND; + case -EINVAL: case -EBADR: return G_OBEX_RSP_BAD_REQUEST; case -EFAULT: return G_OBEX_RSP_SERVICE_UNAVAILABLE; - case -EINVAL: + case -ENOSYS: return G_OBEX_RSP_NOT_IMPLEMENTED; case -ENOTEMPTY: case -EEXIST: -- cgit v1.2.1