diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2009-03-12 16:15:06 -0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2009-03-12 16:15:06 -0300 |
commit | 7c27b3e218470ba0bc2beaad39635f7b3548e53a (patch) | |
tree | 392d8bced2ac86de3da8a6648aa4fc543d8ec7c8 /audio/pcm_bluetooth.c | |
parent | 88b59d5500d626ce382b2edd8892d4b62ad40177 (diff) | |
download | bluez-7c27b3e218470ba0bc2beaad39635f7b3548e53a.tar.gz |
Make use of size_t and ssize_t when possible
Diffstat (limited to 'audio/pcm_bluetooth.c')
-rw-r--r-- | audio/pcm_bluetooth.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/audio/pcm_bluetooth.c b/audio/pcm_bluetooth.c index c0a39be3..9c4f9c46 100644 --- a/audio/pcm_bluetooth.c +++ b/audio/pcm_bluetooth.c @@ -1511,7 +1511,8 @@ static int audioservice_send(int sk, const bt_audio_msg_header_t *msg) static int audioservice_recv(int sk, bt_audio_msg_header_t *inmsg) { - int err, ret; + int err; + ssize_t ret; const char *type, *name; uint16_t length; @@ -1524,7 +1525,7 @@ static int audioservice_recv(int sk, bt_audio_msg_header_t *inmsg) err = -errno; SNDERR("Error receiving IPC data from bluetoothd: %s (%d)", strerror(errno), errno); - } else if (ret < (int) sizeof(bt_audio_msg_header_t)) { + } else if ((size_t) ret < sizeof(bt_audio_msg_header_t)) { SNDERR("Too short (%d bytes) IPC packet from bluetoothd", ret); err = -EINVAL; } else { |