aboutsummaryrefslogtreecommitdiff
path: root/sbin/mknod/mknod.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/mknod/mknod.c')
-rw-r--r--sbin/mknod/mknod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/mknod/mknod.c b/sbin/mknod/mknod.c
index 6905cae0a66f..76bb2e549c7b 100644
--- a/sbin/mknod/mknod.c
+++ b/sbin/mknod/mknod.c
@@ -139,7 +139,7 @@ main(int argc, char **argv)
errx(1, "%s: non-numeric minor number", argv[4]);
range_error |= errno;
dev = makedev(mymajor, myminor);
- if (range_error || major(dev) != (u_int) mymajor ||
+ if (range_error || major(dev) != mymajor ||
(long)(u_int)minor(dev) != myminor)
errx(1, "major or minor number too large");
} else {