From ee77112e8ca1413de8a9133ba4ce51bbfdf66411 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 25 Mar 2002 19:16:08 +0000 Subject: #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. --- gnu/usr.sbin/sendmail/sendmail/conf.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gnu/usr.sbin/sendmail') 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; } -- cgit v1.2.3