aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Vesely2014-11-30 11:53:18 -0600
committerJan Vesely2015-02-10 14:25:28 -0600
commitde8532dd8359dfdaba839ff61fc9e2f05eaf57d3 (patch)
tree1e360fd714028ed930971921f2db23533e2bf46f /xf86drmMode.c
parent6ce06202ddcb979db47b67a508db96ed049f0768 (diff)
downloadexternal-libdrm-de8532dd8359dfdaba839ff61fc9e2f05eaf57d3.tar.gz
external-libdrm-de8532dd8359dfdaba839ff61fc9e2f05eaf57d3.tar.xz
external-libdrm-de8532dd8359dfdaba839ff61fc9e2f05eaf57d3.zip
Fix gcc -Wextra warnings
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Ian Romanick <idr@freedesktop.org> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'xf86drmMode.c')
-rw-r--r--xf86drmMode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xf86drmMode.c b/xf86drmMode.c
index 60ce3699..e3e599bd 100644
--- a/xf86drmMode.c
+++ b/xf86drmMode.c
@@ -854,7 +854,7 @@ int drmHandleEvent(int fd, drmEventContextPtr evctx)
854 len = read(fd, buffer, sizeof buffer); 854 len = read(fd, buffer, sizeof buffer);
855 if (len == 0) 855 if (len == 0)
856 return 0; 856 return 0;
857 if (len < sizeof *e) 857 if (len < (int)sizeof *e)
858 return -1; 858 return -1;
859 859
860 i = 0; 860 i = 0;