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>
main
Grazvydas Ignotas 2016-12-11 20:03:56 +02:00 committed by Emil Velikov
parent 0825792723
commit 3bc14c8cb9
1 changed files with 1 additions and 1 deletions

View File

@ -3582,7 +3582,7 @@ char *drmGetDeviceNameFromFd2(int fd)
FILE *f;
char buf[512];
static const char match[9] = "\nDEVNAME=";
int expected = 1;
size_t expected = 1;
if (fstat(fd, &sbuf))