summaryrefslogtreecommitdiffstats
path: root/audio/control.c
diff options
context:
space:
mode:
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;
}