From ffa79a95165d6b55c614201f36d3bef2d49fdd76 Mon Sep 17 00:00:00 2001 From: Elizabeth Myers Date: Sat, 2 Apr 2016 22:45:52 -0500 Subject: [PATCH] Use rb_dlink_list_length... == 0, not !rb_dlink_list_length --- authd/providers/opm.c | 6 +++--- ircd/newconf.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/authd/providers/opm.c b/authd/providers/opm.c index ac299a128..8768289de 100644 --- a/authd/providers/opm.c +++ b/authd/providers/opm.c @@ -621,7 +621,7 @@ opm_start(struct auth_client *auth) rb_dlink_node *ptr; struct opm_lookup *lookup = rb_malloc(sizeof(struct opm_lookup)); - if(!opm_enable || !rb_dlink_list_length(&proxy_scanners)) + if(!opm_enable || rb_dlink_list_length(&proxy_scanners) == 0) { notice_client(auth->cid, "*** Proxy scanning disabled, not scanning"); return true; @@ -836,7 +836,7 @@ delete_opm_scanner(const char *key __unused, int parc __unused, const char **par rb_dlinkDelete(&scan->node, &lookup->scans); rb_free(scan); - if(!rb_dlink_list_length(&lookup->scans)) + if(rb_dlink_list_length(&lookup->scans) == 0) opm_cancel(auth); break; @@ -847,7 +847,7 @@ delete_opm_scanner(const char *key __unused, int parc __unused, const char **par rb_dlinkDelete(&proxy->node, &proxy_scanners); rb_free(proxy); - if(!rb_dlink_list_length(proxy_scanners)) + if(rb_dlink_list_length(&proxy_scanners) == 0) opm_enable = false; } diff --git a/ircd/newconf.c b/ircd/newconf.c index b04ca6d52..7ec2d04ed 100644 --- a/ircd/newconf.c +++ b/ircd/newconf.c @@ -2053,7 +2053,7 @@ conf_end_opm(struct TopConf *tc) rb_dlink_node *ptr, *nptr; bool fail = false; - if(!rb_dlink_list_length(&yy_opm_scanner_list)) + if(rb_dlink_list_length(&yy_opm_scanner_list) == 0) { conf_report_error("No opm scanners configured -- disabling opm."); fail = true; @@ -2434,7 +2434,7 @@ conf_call_set(struct TopConf *tc, char *item, conf_parm_t * value) if((cf = find_conf_item(tc, item)) == NULL) { conf_report_error - ("Non-existant configuration setting %s::%s.", tc->tc_name, (char *) item); + ("Non-existent configuration setting %s::%s.", tc->tc_name, (char *) item); return -1; }