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 "