From 6f053cd485ed5a50c438f86f41358e105ae3c44c Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Thu, 12 Apr 2001 21:04:14 +0000 Subject: [PATCH] use ISC_TF() to set an isc_boolean_t --- bin/named/aclconf.c | 4 ++-- lib/isc/log.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/named/aclconf.c b/bin/named/aclconf.c index 17a36a8f8f..828925052a 100644 --- a/bin/named/aclconf.c +++ b/bin/named/aclconf.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: aclconf.c,v 1.26 2001/03/04 21:21:20 bwelling Exp $ */ +/* $Id: aclconf.c,v 1.27 2001/04/12 21:02:46 tale Exp $ */ #include @@ -203,7 +203,7 @@ ns_acl_fromconfig(cfg_obj_t *caml, de->type = dns_aclelementtype_any; } else if (strcasecmp(name, "none") == 0) { de->type = dns_aclelementtype_any; - de->negative = ! de->negative; + de->negative = ISC_TF(! de->negative); } else { de->type = dns_aclelementtype_nestedacl; result = convert_named_acl(ce, cctx, ctx, mctx, diff --git a/lib/isc/log.c b/lib/isc/log.c index 1c1c6aa991..ee4daddbe8 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.59 2001/03/28 05:48:16 tale Exp $ */ +/* $Id: log.c,v 1.60 2001/04/12 21:04:14 tale Exp $ */ /* Principal Authors: DCL */ @@ -1250,8 +1250,8 @@ isc_log_open(isc_logchannel_t *channel) { regular_file = (statbuf.st_mode & S_IFREG) ? ISC_TRUE : ISC_FALSE; /* XXXDCL if not regular_file complain? */ - roll = regular_file && - statbuf.st_size >= FILE_MAXSIZE(channel); + roll = ISC_TF(regular_file && + statbuf.st_size >= FILE_MAXSIZE(channel)); } else if (errno == ENOENT) regular_file = ISC_TRUE; else