diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2012-02-18 17:18:59 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-20 00:18:08 +0200 |
commit | 796a410efd67a5e4dacac2956dc13a96cd6b04ba (patch) | |
tree | c2d25786bfe102f31194d8b04e74ea891761ed36 /gobex | |
parent | 186b32dd13184e876766170132f46beef55965aa (diff) | |
download | obexd-796a410efd67a5e4dacac2956dc13a96cd6b04ba.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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gobex/gobex.c b/gobex/gobex.c index 0ced782..0665749 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: |