diff options
Diffstat (limited to 'sbin/mknod')
-rw-r--r-- | sbin/mknod/mknod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/mknod/mknod.c b/sbin/mknod/mknod.c index 7781c50..4c6c399 100644 --- a/sbin/mknod/mknod.c +++ b/sbin/mknod/mknod.c @@ -138,7 +138,7 @@ main(int argc, char **argv) range_error |= errno; dev = makedev(mymajor, myminor); if (range_error || major(dev) != (u_int) mymajor || - minor(dev) != myminor) + (long)(u_int)minor(dev) != myminor) errx(1, "major or minor number too large"); uid = gid = -1; |