summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-sdp.c
diff options
context:
space:
mode:
authorUlisses Furquim <ulissesf@gmail.com>2006-09-05 20:48:59 +0000
committerUlisses Furquim <ulissesf@gmail.com>2006-09-05 20:48:59 +0000
commitc98c6d74795ed1e757da1ee2afb48d3fb09d7f91 (patch)
treed1a7ea0ee5eb8f985d69c52c7a7870a286c312a2 /hcid/dbus-sdp.c
parentf1604b8852a3d166363d18e750281a427e2ff948 (diff)
Fix functions to return negative error values
Diffstat (limited to 'hcid/dbus-sdp.c')
-rw-r--r--hcid/dbus-sdp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hcid/dbus-sdp.c b/hcid/dbus-sdp.c
index fbf8ac2b..7ad41a6c 100644
--- a/hcid/dbus-sdp.c
+++ b/hcid/dbus-sdp.c
@@ -837,7 +837,7 @@ static int remote_svc_rec_conn_cb(struct transaction_context *ctxt)
if (sdp_set_notify(ctxt->session, remote_svc_rec_completed_cb, ctxt) < 0) {
error("Invalid session data!");
- err = EINVAL;
+ err = -EINVAL;
goto fail;
}
@@ -850,7 +850,7 @@ static int remote_svc_rec_conn_cb(struct transaction_context *ctxt)
/* Create/send the search request and set the callback to indicate the request completion */
if (sdp_service_attr_async(ctxt->session, handle, SDP_ATTR_REQ_RANGE, attrids) < 0) {
error("send request failed: %s (%d)", strerror(errno), errno);
- err = errno;
+ err = -errno;
goto fail;
}
@@ -894,7 +894,7 @@ static int remote_svc_handles_conn_cb(struct transaction_context *ctxt)
if (sdp_set_notify(ctxt->session, remote_svc_handles_completed_cb, ctxt) < 0) {
error("Invalid session data!");
- err = EINVAL;
+ err = -EINVAL;
goto fail;
}
@@ -905,7 +905,7 @@ static int remote_svc_handles_conn_cb(struct transaction_context *ctxt)
/* Create/send the search request and set the callback to indicate the request completion */
if (sdp_service_search_attr_async(ctxt->session, search, SDP_ATTR_REQ_RANGE, attrids) < 0) {
error("send request failed: %s (%d)", strerror(errno), errno);
- err = errno;
+ err = -errno;
goto fail;
}