summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-08-15 09:25:34 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-08-15 09:25:34 +0000
commit39a89d37d02285196b667079ad851e01b3575fe7 (patch)
tree0d0a47f41bcb2df99833e53bfb5faaddf8c3e808
parent49d7d366bbbe13d0ebdb79da908aee5ca5429dcd (diff)
avdtp_send returns a boolean and not a int
-rw-r--r--audio/avdtp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/audio/avdtp.c b/audio/avdtp.c
index 9da8730f..db5f4ef4 100644
--- a/audio/avdtp.c
+++ b/audio/avdtp.c
@@ -1473,9 +1473,10 @@ static int send_req(struct avdtp *session, gboolean priority,
/* FIXME: Should we retry to send if the buffer
was not totally sent or in case of EINTR? */
- err = avdtp_send(session, req->msg, req->msg_size);
- if (err < 0)
+ if (!avdtp_send(session, req->msg, req->msg_size)) {
+ err = -EIO;
goto failed;
+ }
session->req = req;