diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/stat/mknod.c | 5 | ||||
-rw-r--r-- | src/stat/mknodat.c | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/stat/mknod.c b/src/stat/mknod.c index 90c6a1ca..c3196571 100644 --- a/src/stat/mknod.c +++ b/src/stat/mknod.c @@ -3,8 +3,5 @@ int mknod(const char *path, mode_t mode, dev_t dev) { - /* since dev_t is system-specific anyway we defer to the idiotic - * legacy-compatible bitfield mapping of the type.. at least we've - * made it large enough to leave space for future expansion.. */ - return syscall(SYS_mknod, path, mode, dev & 0xffff); + return syscall(SYS_mknod, path, mode, dev); } diff --git a/src/stat/mknodat.c b/src/stat/mknodat.c index 63cacd58..7c97c91a 100644 --- a/src/stat/mknodat.c +++ b/src/stat/mknodat.c @@ -3,5 +3,5 @@ int mknodat(int fd, const char *path, mode_t mode, dev_t dev) { - return syscall(SYS_mknodat, fd, path, mode, dev & 0xffff); + return syscall(SYS_mknodat, fd, path, mode, dev); } |