diff options
author | des <des@FreeBSD.org> | 2004-10-04 06:54:19 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2004-10-04 06:54:19 +0000 |
commit | cf2ba42b0296d6f9a62b010c2d80051d8cc8ed14 (patch) | |
tree | 836b2972e52b0dac63bee909f3b040f6d4698f5c /sbin/dumpon | |
parent | 395c906e95c3dd63b5994b9fd2a3800cf70771c0 (diff) | |
download | FreeBSD-src-cf2ba42b0296d6f9a62b010c2d80051d8cc8ed14.zip FreeBSD-src-cf2ba42b0296d6f9a62b010c2d80051d8cc8ed14.tar.gz |
Promote mediasize and physmem to uintmax_t when comparing them.
Diffstat (limited to 'sbin/dumpon')
-rw-r--r-- | sbin/dumpon/dumpon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/dumpon/dumpon.c b/sbin/dumpon/dumpon.c index 77aac33..df6f88a 100644 --- a/sbin/dumpon/dumpon.c +++ b/sbin/dumpon/dumpon.c @@ -79,7 +79,7 @@ check_size(int fd, const char *fn) err(EX_OSERR, "can't get memory size"); if (ioctl(fd, DIOCGMEDIASIZE, &mediasize) != 0) err(EX_OSERR, "%s: can't get size", fn); - if (mediasize < physmem) { + if ((uintmax_t)mediasize < (uintmax_t)physmem) { if (verbose) printf("%s is smaller than physical memory\n", fn); exit(EX_IOERR); |