diff options
author | Grazvydas Ignotas | 2016-12-11 12:03:56 -0600 |
---|---|---|
committer | Emil Velikov | 2016-12-12 08:01:19 -0600 |
commit | 3bc14c8cb99a8c4d927e07f947449c3e50d188c9 (patch) | |
tree | f1ba6ce3ab8490c92c5d4eba599014858e8a80ef | |
parent | 08257927231e4f51c38e1d2bdbb8db0c2d4aec40 (diff) | |
download | external-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) |