diff options
author | mjacob <mjacob@FreeBSD.org> | 2000-01-05 20:18:16 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2000-01-05 20:18:16 +0000 |
commit | 1a9afadba950525b17ec9b2f312da0fcf6efddcf (patch) | |
tree | a50d3c7bc4674df9e3981b16935ebb95f2799069 /sbin/mknod/mknod.c | |
parent | a1b69f2dc4f2b713478dc4f4b41300ee22586c92 (diff) | |
download | FreeBSD-src-1a9afadba950525b17ec9b2f312da0fcf6efddcf.zip FreeBSD-src-1a9afadba950525b17ec9b2f312da0fcf6efddcf.tar.gz |
Cast myminor/mymajor results to u_int so
comparisons to longs work correctly on
alpha.
Diffstat (limited to 'sbin/mknod/mknod.c')
-rw-r--r-- | sbin/mknod/mknod.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/mknod/mknod.c b/sbin/mknod/mknod.c index 5bf4623..822d5f2 100644 --- a/sbin/mknod/mknod.c +++ b/sbin/mknod/mknod.c @@ -97,7 +97,8 @@ main(argc, argv) errx(1, "%s: non-numeric minor number", argv[4]); range_error |= errno; dev = makedev(mymajor, myminor); - if (range_error || major(dev) != mymajor || minor(dev) != myminor) + if (range_error || major(dev) != (u_int) mymajor || + minor(dev) != (u_int) myminor) errx(1, "major or minor number too large"); if (mknod(argv[1], mode, dev) != 0) |