summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2014-11-24 18:37:13 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2016-05-23 01:12:34 +0300
commitbec91768c57990c315f59ad2690f7348b8659298 (patch)
tree1cc44f472f30ea691436004fe81eb7ae7b47b80e
parentc3f9e20be84870728093ea67db5a877ffca0eb96 (diff)
libmediactl: Fix signed and unsigned integer comparison
The pos variable is always positive when compared, cast it to an unsigned integer to fix the compiler warning. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--3rdparty/media-ctl/libmediactl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/3rdparty/media-ctl/libmediactl.c b/3rdparty/media-ctl/libmediactl.c
index 2f98183..1e86b61 100644
--- a/3rdparty/media-ctl/libmediactl.c
+++ b/3rdparty/media-ctl/libmediactl.c
@@ -954,7 +954,7 @@ void media_print_streampos(struct media_device *media, const char *p,
if (pos < 0)
pos = 0;
- if (pos > strlen(p))
+ if ((unsigned int)pos > strlen(p))
pos = strlen(p);
media_dbg(media, "\n");