Convert to uniform style: cond == false --> !cond
diff --git a/src/ctl.c b/src/ctl.c
index c55f6e4..b85710c 100644
--- a/src/ctl.c
+++ b/src/ctl.c
@@ -36,8 +36,7 @@
ctl_indexed_node(const ctl_node_t *node)
{
- return ((node->named == false) ? (const ctl_indexed_node_t *)node :
- NULL);
+ return (!node->named ? (const ctl_indexed_node_t *)node : NULL);
}
/******************************************************************************/
@@ -693,7 +692,7 @@
bool ret;
malloc_mutex_lock(&ctl_mtx);
- if (ctl_initialized == false) {
+ if (!ctl_initialized) {
/*
* Allocate space for one extra arena stats element, which
* contains summed stats across all arenas.
@@ -843,7 +842,7 @@
size_t mib[CTL_MAX_DEPTH];
const ctl_named_node_t *node;
- if (ctl_initialized == false && ctl_init()) {
+ if (!ctl_initialized && ctl_init()) {
ret = EAGAIN;
goto label_return;
}
@@ -870,7 +869,7 @@
{
int ret;
- if (ctl_initialized == false && ctl_init()) {
+ if (!ctl_initialized && ctl_init()) {
ret = EAGAIN;
goto label_return;
}
@@ -888,7 +887,7 @@
const ctl_named_node_t *node;
size_t i;
- if (ctl_initialized == false && ctl_init()) {
+ if (!ctl_initialized && ctl_init()) {
ret = EAGAIN;
goto label_return;
}
@@ -1015,7 +1014,7 @@
int ret; \
t oldval; \
\
- if ((c) == false) \
+ if (!(c)) \
return (ENOENT); \
if (l) \
malloc_mutex_lock(&ctl_mtx); \
@@ -1038,7 +1037,7 @@
int ret; \
t oldval; \
\
- if ((c) == false) \
+ if (!(c)) \
return (ENOENT); \
malloc_mutex_lock(&ctl_mtx); \
READONLY(); \
@@ -1082,7 +1081,7 @@
int ret; \
t oldval; \
\
- if ((c) == false) \
+ if (!(c)) \
return (ENOENT); \
READONLY(); \
oldval = (v); \
@@ -1119,7 +1118,7 @@
t oldval; \
tsd_t *tsd; \
\
- if ((c) == false) \
+ if (!(c)) \
return (ENOENT); \
READONLY(); \
tsd = tsd_tryget(); \
@@ -1291,7 +1290,7 @@
int ret;
bool oldval;
- if (config_tcache == false)
+ if (!config_tcache)
return (ENOENT);
oldval = tcache_enabled_get();
@@ -1315,7 +1314,7 @@
{
int ret;
- if (config_tcache == false)
+ if (!config_tcache)
return (ENOENT);
READONLY();
@@ -1335,7 +1334,7 @@
int ret;
const char *oldname;
- if (config_prof == false)
+ if (!config_prof)
return (ENOENT);
oldname = prof_thread_name_get();
@@ -1372,7 +1371,7 @@
int ret;
bool oldval;
- if (config_prof == false)
+ if (!config_prof)
return (ENOENT);
oldval = prof_thread_active_get();
@@ -1459,7 +1458,7 @@
}
}
- if (match == false) {
+ if (!match) {
ret = EINVAL;
goto label_return;
}
@@ -1668,7 +1667,7 @@
int ret;
bool oldval;
- if (config_prof == false)
+ if (!config_prof)
return (ENOENT);
malloc_mutex_lock(&ctl_mtx); /* Protect opt_prof_active. */
@@ -1697,7 +1696,7 @@
int ret;
const char *filename = NULL;
- if (config_prof == false)
+ if (!config_prof)
return (ENOENT);
WRITEONLY();
@@ -1721,7 +1720,7 @@
size_t lg_sample = lg_prof_sample;
tsd_t *tsd;
- if (config_prof == false)
+ if (!config_prof)
return (ENOENT);
WRITEONLY();
@@ -1847,7 +1846,7 @@
const ctl_named_node_t * ret;
malloc_mutex_lock(&ctl_mtx);
- if (i > ctl_stats.narenas || ctl_stats.arenas[i].initialized == false) {
+ if (i > ctl_stats.narenas || !ctl_stats.arenas[i].initialized) {
ret = NULL;
goto label_return;
}