projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0825792
)
xf86drm: fix sign-compare warning
author
Grazvydas Ignotas
<notasas@gmail.com>
Sun, 11 Dec 2016 18:03:56 +0000
(20:03 +0200)
committer
Emil Velikov
<emil.l.velikov@gmail.com>
Mon, 12 Dec 2016 14:01:19 +0000
(14:01 +0000)
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>
xf86drm.c
patch
|
blob
|
history
diff --git
a/xf86drm.c
b/xf86drm.c
index
2e8c956
..
b5eeeb0
100644
(file)
--- a/
xf86drm.c
+++ b/
xf86drm.c
@@
-3582,7
+3582,7
@@
char *drmGetDeviceNameFromFd2(int fd)
FILE *f;
char buf[512];
static const char match[9] = "\nDEVNAME=";
-
in
t expected = 1;
+
size_
t expected = 1;
if (fstat(fd, &sbuf))