change "expr == false" to "!expr" in conditionals

(cherry picked from commit 57e54c46e4)
This commit is contained in:
Evan Hunt
2020-03-30 13:49:55 -07:00
parent 00c816778d
commit c19a593d3e
31 changed files with 73 additions and 78 deletions

View File

@@ -65,14 +65,14 @@ typedef struct dlopen_data {
#define MAYBE_LOCK(cd) \
do { \
if ((cd->flags & DNS_SDLZFLAG_THREADSAFE) == 0 && \
cd->in_configure == false) \
!cd->in_configure) \
LOCK(&cd->lock); \
} while (0)
#define MAYBE_UNLOCK(cd) \
do { \
if ((cd->flags & DNS_SDLZFLAG_THREADSAFE) == 0 && \
cd->in_configure == false) \
!cd->in_configure) \
UNLOCK(&cd->lock); \
} while (0)

View File

@@ -63,14 +63,14 @@ typedef struct dlopen_data {
#define MAYBE_LOCK(cd) \
do { \
if ((cd->flags & DNS_SDLZFLAG_THREADSAFE) == 0 && \
cd->in_configure == false) \
!cd->in_configure) \
LOCK(&cd->lock); \
} while (0)
#define MAYBE_UNLOCK(cd) \
do { \
if ((cd->flags & DNS_SDLZFLAG_THREADSAFE) == 0 && \
cd->in_configure == false) \
!cd->in_configure) \
UNLOCK(&cd->lock); \
} while (0)