diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-03-25 19:16:08 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-03-25 19:16:08 +0000 |
commit | ee77112e8ca1413de8a9133ba4ce51bbfdf66411 (patch) | |
tree | 37e5fd980615a9b0cec5d497370d79591dc5b77a /gnu/usr.sbin/sendmail | |
parent | ff777a25b005ea3d27fe4c5687196702704bcf90 (diff) |
#ifdef out useless test on OpenBSD. f_bavail is a 32bit int and
so can never be > LONG_MAX. This test is probably useless on most
other operating systems too but on our LP64 platforms it generates
a compiler warning.
Diffstat (limited to 'gnu/usr.sbin/sendmail')
-rw-r--r-- | gnu/usr.sbin/sendmail/sendmail/conf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/usr.sbin/sendmail/sendmail/conf.c b/gnu/usr.sbin/sendmail/sendmail/conf.c index 992336dd78d..9896f744f39 100644 --- a/gnu/usr.sbin/sendmail/sendmail/conf.c +++ b/gnu/usr.sbin/sendmail/sendmail/conf.c @@ -3246,8 +3246,10 @@ freediskspace(dir, bsize) *bsize = FSBLOCKSIZE; if (fs.SFS_BAVAIL <= 0) return 0; +#ifndef __OpenBSD__ else if (fs.SFS_BAVAIL > LONG_MAX) return (long) LONG_MAX; +#endif else return (long) fs.SFS_BAVAIL; } |