(__xmknodat): Cast k_dev value to unsigned int to match kernel.

This commit is contained in:
Ulrich Drepper 2006-01-21 01:51:04 +00:00
parent c3272e9ed3
commit e6c8af451f
1 changed files with 2 additions and 1 deletions

View File

@ -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;