From 2a86ee1f54e945a956fa3eb488f9c721751ea458 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Wed, 28 Mar 2001 05:48:16 +0000 Subject: [PATCH] simplify the test about whether to roll; one expression was redundant --- lib/isc/log.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/isc/log.c b/lib/isc/log.c index 3de243738b..1c1c6aa991 100644 --- a/lib/isc/log.c +++ b/lib/isc/log.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: log.c,v 1.58 2001/03/28 04:16:32 tale Exp $ */ +/* $Id: log.c,v 1.59 2001/03/28 05:48:16 tale Exp $ */ /* Principal Authors: DCL */ @@ -1251,8 +1251,7 @@ isc_log_open(isc_logchannel_t *channel) { ISC_TRUE : ISC_FALSE; /* XXXDCL if not regular_file complain? */ roll = regular_file && - (FILE_MAXSIZE(channel) == 0 || - statbuf.st_size >= FILE_MAXSIZE(channel)); + statbuf.st_size >= FILE_MAXSIZE(channel); } else if (errno == ENOENT) regular_file = ISC_TRUE; else