diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-15 09:25:34 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-15 09:25:34 +0000 |
commit | 39a89d37d02285196b667079ad851e01b3575fe7 (patch) | |
tree | 0d0a47f41bcb2df99833e53bfb5faaddf8c3e808 /audio/avdtp.c | |
parent | 49d7d366bbbe13d0ebdb79da908aee5ca5429dcd (diff) |
avdtp_send returns a boolean and not a int
Diffstat (limited to 'audio/avdtp.c')
-rw-r--r-- | audio/avdtp.c | 5 |
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; |