summaryrefslogtreecommitdiff
path: root/gobex
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-02-18 17:18:59 +0200
committerMarcel Holtmann <marcel@holtmann.org>2012-12-04 22:22:06 +0100
commit75e50f781b44cdd8db1911eaee1bc5b4c949f9d9 (patch)
tree2d779694926e2ef823b5df5e3ca8272ccd53a106 /gobex
parentfaac92a4cb2ac06ea998987fb3ce53882b9e1970 (diff)
downloadbluez-75e50f781b44cdd8db1911eaee1bc5b4c949f9d9.tar.gz
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
Diffstat (limited to 'gobex')
-rw-r--r--gobex/gobex.c3
1 files changed, 2 insertions, 1 deletions
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: