summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPauli Nieminen <suokkos@gmail.com>2009-07-20 15:45:41 +0300
committerPauli Nieminen <suokkos@gmail.com>2009-08-25 02:50:05 +0300
commit088924e77557156666421cb92f632a721d6dacdc (patch)
tree3d33c465d6948b4a15f142a4d8e90913487dc9c2
parent6df6778ab84de182267fadc2779fa58d79269379 (diff)
libdrm: Fix drmOpenDevice to take dev_t type as parameter.
This fixes signed/unsigned comparission between st.st_dev and dev.
-rw-r--r--libdrm/xf86drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdrm/xf86drm.c b/libdrm/xf86drm.c
index d1682585..30e96162 100644
--- a/libdrm/xf86drm.c
+++ b/libdrm/xf86drm.c
@@ -323,7 +323,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;
char buf[64];