summaryrefslogtreecommitdiffstats
path: root/audio/control.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-01-30 00:24:59 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-01-30 00:24:59 +0100
commitb41ba1eb2b6b7a775536f803eda6fe42d8742745 (patch)
tree165b1d6d39a0bb351bff6046c3c070a36123d24b /audio/control.c
parent0d90af2304c75cc1a3c521bcae7510ff86bb9536 (diff)
Fix signed/unsigned comparison issues within AVDTP/A2DP code
Diffstat (limited to 'audio/control.c')
-rw-r--r--audio/control.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/control.c b/audio/control.c
index 9d21b594..5579f5c2 100644
--- a/audio/control.c
+++ b/audio/control.c
@@ -462,7 +462,7 @@ static gboolean session_cb(GIOChannel *chan, GIOCondition cond,
debug("Got %d bytes of data for AVCTP session %p", ret, session);
- if (ret < sizeof(struct avctp_header)) {
+ if ((unsigned int) ret < sizeof(struct avctp_header)) {
error("Too small AVCTP packet");
goto failed;
}
@@ -477,7 +477,7 @@ static gboolean session_cb(GIOChannel *chan, GIOCondition cond,
avctp->cr, avctp->ipid, ntohs(avctp->pid));
ret -= sizeof(struct avctp_header);
- if (ret < sizeof(struct avrcp_header)) {
+ if ((unsigned int) ret < sizeof(struct avrcp_header)) {
error("Too small AVRCP packet");
goto failed;
}