about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--sysdeps/unix/sysv/linux/xmknodat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/xmknodat.c b/sysdeps/unix/sysv/linux/xmknodat.c
index d6cb4ed1be..ef27b686cc 100644
--- a/sysdeps/unix/sysv/linux/xmknodat.c
+++ b/sysdeps/unix/sysv/linux/xmknodat.c
@@ -55,7 +55,8 @@ __xmknodat (int vers, int fd, const char *file, mode_t mode, dev_t *dev)
   if (__have_atfcts >= 0)
 # endif
     {
-      int res = INLINE_SYSCALL (mknodat, 4, fd, file, mode, k_dev);
+      int res = INLINE_SYSCALL (mknodat, 4, fd, file, mode,
+				(unsigned int) k_dev);
 # ifndef __ASSUME_ATFCTS
       if (res == -1 && errno == ENOSYS)
 	__have_atfcts = -1;