diff options
author | Jan Vesely <jan.vesely@rutgers.edu> | 2014-11-30 12:53:18 -0500 |
---|---|---|
committer | Jan Vesely <jan.vesely@rutgers.edu> | 2015-02-10 15:25:28 -0500 |
commit | de8532dd8359dfdaba839ff61fc9e2f05eaf57d3 (patch) | |
tree | 1e360fd714028ed930971921f2db23533e2bf46f /xf86drm.c | |
parent | 6ce06202ddcb979db47b67a508db96ed049f0768 (diff) |
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 'xf86drm.c')
-rw-r--r-- | xf86drm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -303,7 +303,7 @@ static int chown_check_return(const char *path, uid_t owner, gid_t group) * special file node with the major and minor numbers specified by \p dev and * parent directory if necessary and was called by root. */ -static int drmOpenDevice(long dev, int minor, int type) +static int drmOpenDevice(dev_t dev, int minor, int type) { stat_t st; const char *dev_name; @@ -2213,7 +2213,7 @@ int drmGetClient(int fd, int idx, int *auth, int *pid, int *uid, int drmGetStats(int fd, drmStatsT *stats) { drm_stats_t s; - int i; + unsigned i; if (drmIoctl(fd, DRM_IOCTL_GET_STATS, &s)) return -errno; |