Fix ambiguous boolean expressions.

This commit is contained in:
Peter Simons 2019-07-10 15:26:03 +02:00
parent c104e4a16f
commit 65f18534bc
2 changed files with 6 additions and 6 deletions

View File

@ -312,7 +312,7 @@ AddAddress(struct Mail * MailStruct,
/* Send success notification to the originator and the new subscriber */
if (!strcasecmp(address, originator) == TRUE)
if (!strcasecmp(address, originator))
fh = vOpenMailer(envelope, address, NULL);
else
fh = vOpenMailer(envelope, address, originator, NULL);
@ -329,7 +329,7 @@ AddAddress(struct Mail * MailStruct,
fprintf(fh, "Precedence: junk\n");
fprintf(fh, "Sender: %s\n", envelope);
fprintf(fh, "\n");
if (!strcasecmp(address, originator) == TRUE)
if (!strcasecmp(address, originator))
{
buffer = text_easy_sprintf(
"Per your request, the address \"%s\" has been subscribed to the " \
@ -371,7 +371,7 @@ AddAddress(struct Mail * MailStruct,
fprintf(fh, "Precedence: junk\n");
fprintf(fh, "Sender: %s\n", envelope);
fprintf(fh, "\n");
if (!strcasecmp(address, originator) == TRUE) {
if (!strcasecmp(address, originator)) {
buffer = text_easy_sprintf(
"Per request from the subscriber, the address \"%s\"\n"
"has been subscribed to the \"%s\" mailing list.\n",

View File

@ -317,7 +317,7 @@ DeleteAddress(struct Mail * MailStruct,
/* Send success notification to the originator and the unsubscribed address */
if (!strcasecmp(address, originator) == TRUE)
if (!strcasecmp(address, originator))
fh = vOpenMailer(envelope, address, NULL);
else
fh = vOpenMailer(envelope, address, originator, NULL);
@ -334,7 +334,7 @@ DeleteAddress(struct Mail * MailStruct,
fprintf(fh, "Precedence: junk\n");
fprintf(fh, "Sender: %s\n", envelope);
fprintf(fh, "\n");
if (!strcasecmp(address, originator) == TRUE)
if (!strcasecmp(address, originator))
{
buffer = text_easy_sprintf(
"Per your request, the address \"%s\" has been unsubscribed from the " \
@ -370,7 +370,7 @@ DeleteAddress(struct Mail * MailStruct,
fprintf(fh, "Precedence: junk\n");
fprintf(fh, "Sender: %s\n", envelope);
fprintf(fh, "\n");
if (!strcasecmp(address, originator) == TRUE) {
if (!strcasecmp(address, originator)) {
buffer = text_easy_sprintf(
"Per request from the subscriber, the address \"%s\"\n"
"has been unsubscribed from the \"%s\" mailing list.\n",