From e6c8af451f8ccdbd28ea6e8419eedb5551ba4c48 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 21 Jan 2006 01:51:04 +0000 Subject: [PATCH] (__xmknodat): Cast k_dev value to unsigned int to match kernel. --- sysdeps/unix/sysv/linux/xmknodat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;