diff options
author | Ulrich Drepper <drepper@redhat.com> | 2006-01-21 01:51:04 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2006-01-21 01:51:04 +0000 |
commit | e6c8af451f8ccdbd28ea6e8419eedb5551ba4c48 (patch) | |
tree | 46d3633bbd8d94fd1039aa9f26c4f306863cf88b | |
parent | c3272e9ed3c9fd11b68b026901c381d277eaf7a9 (diff) | |
download | glibc-e6c8af451f8ccdbd28ea6e8419eedb5551ba4c48.tar.gz glibc-e6c8af451f8ccdbd28ea6e8419eedb5551ba4c48.tar.xz glibc-e6c8af451f8ccdbd28ea6e8419eedb5551ba4c48.zip |
(__xmknodat): Cast k_dev value to unsigned int to match kernel.
-rw-r--r-- | sysdeps/unix/sysv/linux/xmknodat.c | 3 |
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; |