From c479fe7b9edcf69be477af7190175631d78e855d Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Sat, 11 Dec 2021 15:07:27 -0700 Subject: [PATCH] Fix some logical-not-parentheses warnings --- cde/lib/DtSearch/raima/connect.c | 2 +- cde/lib/tt/slib/mp_s_procid.C | 2 +- cde/programs/dtmail/dtmail/RoamCmds.C | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cde/lib/DtSearch/raima/connect.c b/cde/lib/DtSearch/raima/connect.c index 4bd9e739e..d992bb479 100644 --- a/cde/lib/DtSearch/raima/connect.c +++ b/cde/lib/DtSearch/raima/connect.c @@ -121,7 +121,7 @@ int dbn /* Database number */ goto quit; /* ensure record not already connected to set */ - if ( ! crmp.owner == NULL_DBA ) { + if ( ! (crmp.owner == NULL_DBA) ) { stat = dberr(S_ISOWNED); goto quit; } diff --git a/cde/lib/tt/slib/mp_s_procid.C b/cde/lib/tt/slib/mp_s_procid.C index 71b840a29..357374a03 100644 --- a/cde/lib/tt/slib/mp_s_procid.C +++ b/cde/lib/tt/slib/mp_s_procid.C @@ -100,7 +100,7 @@ add_message(const _Tt_s_message_ptr &m) { _Tt_xdr_version xvers(_version); - if (! _flags&(1<<_TT_PROC_ACTIVE)) { + if (! (_flags&(1<<_TT_PROC_ACTIVE))) { _tt_syslog(0, LOG_ERR, catgets(_ttcatd, 2, 4, "A ToolTalk client died before it " diff --git a/cde/programs/dtmail/dtmail/RoamCmds.C b/cde/programs/dtmail/dtmail/RoamCmds.C index aae58f946..1dc98940b 100644 --- a/cde/programs/dtmail/dtmail/RoamCmds.C +++ b/cde/programs/dtmail/dtmail/RoamCmds.C @@ -4003,8 +4003,8 @@ VacationCmd::parseVacationMessage() for (hnd = env->getFirstHeader(error, &name, value); error.isNotSet() && hnd; hnd = env->getNextHeader(error, hnd, &name, value)) { - - if (!strcmp(name, "Subject") == 0) { + + if (strcmp(name, "Subject")) { continue; } else {