From bec91768c57990c315f59ad2690f7348b8659298 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 24 Nov 2014 18:37:13 +0200 Subject: 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 --- 3rdparty/media-ctl/libmediactl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit v1.2.3