aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrazvydas Ignotas2016-12-11 12:03:56 -0600
committerEmil Velikov2016-12-12 08:01:19 -0600
commit3bc14c8cb99a8c4d927e07f947449c3e50d188c9 (patch)
treef1ba6ce3ab8490c92c5d4eba599014858e8a80ef
parent08257927231e4f51c38e1d2bdbb8db0c2d4aec40 (diff)
downloadexternal-libdrm-3bc14c8cb99a8c4d927e07f947449c3e50d188c9.tar.gz
external-libdrm-3bc14c8cb99a8c4d927e07f947449c3e50d188c9.tar.xz
external-libdrm-3bc14c8cb99a8c4d927e07f947449c3e50d188c9.zip
xf86drm: fix sign-compare warning
xf86drm.c:3601:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (expected < sizeof(match)) { ^ Signed-off-by: Grazvydas Ignotas <notasas@gmail.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
-rw-r--r--xf86drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xf86drm.c b/xf86drm.c
index 2e8c9569..b5eeeb09 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -3582,7 +3582,7 @@ char *drmGetDeviceNameFromFd2(int fd)
3582 FILE *f; 3582 FILE *f;
3583 char buf[512]; 3583 char buf[512];
3584 static const char match[9] = "\nDEVNAME="; 3584 static const char match[9] = "\nDEVNAME=";
3585 int expected = 1; 3585 size_t expected = 1;
3586 3586
3587 3587
3588 if (fstat(fd, &sbuf)) 3588 if (fstat(fd, &sbuf))