mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
(__xmknodat): Cast k_dev value to unsigned int to match kernel.
This commit is contained in:
parent
c3272e9ed3
commit
e6c8af451f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user