2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

use ISC_TF() to set an isc_boolean_t

This commit is contained in:
David Lawrence
2001-04-12 21:04:14 +00:00
parent 4ab0eb3be8
commit 6f053cd485
2 changed files with 5 additions and 5 deletions

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * 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 <config.h> #include <config.h>
@@ -203,7 +203,7 @@ ns_acl_fromconfig(cfg_obj_t *caml,
de->type = dns_aclelementtype_any; de->type = dns_aclelementtype_any;
} else if (strcasecmp(name, "none") == 0) { } else if (strcasecmp(name, "none") == 0) {
de->type = dns_aclelementtype_any; de->type = dns_aclelementtype_any;
de->negative = ! de->negative; de->negative = ISC_TF(! de->negative);
} else { } else {
de->type = dns_aclelementtype_nestedacl; de->type = dns_aclelementtype_nestedacl;
result = convert_named_acl(ce, cctx, ctx, mctx, result = convert_named_acl(ce, cctx, ctx, mctx,

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * 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 */ /* Principal Authors: DCL */
@@ -1250,8 +1250,8 @@ isc_log_open(isc_logchannel_t *channel) {
regular_file = (statbuf.st_mode & S_IFREG) ? regular_file = (statbuf.st_mode & S_IFREG) ?
ISC_TRUE : ISC_FALSE; ISC_TRUE : ISC_FALSE;
/* XXXDCL if not regular_file complain? */ /* XXXDCL if not regular_file complain? */
roll = regular_file && roll = ISC_TF(regular_file &&
statbuf.st_size >= FILE_MAXSIZE(channel); statbuf.st_size >= FILE_MAXSIZE(channel));
} else if (errno == ENOENT) } else if (errno == ENOENT)
regular_file = ISC_TRUE; regular_file = ISC_TRUE;
else else