1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

Fix some logical-not-parentheses warnings

This commit is contained in:
Jon Trulson 2021-12-11 15:07:27 -07:00
parent 24a2f05138
commit c479fe7b9e
3 changed files with 4 additions and 4 deletions

View file

@ -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;
}

View file

@ -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 "

View file

@ -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 {