hermes.c, approve.c: use proper EXIT_* code instead of magic contstant
This commit is contained in:
parent
6e37fb864d
commit
f693f67bf4
@ -101,7 +101,7 @@ void approve_main(char* mail)
|
||||
if (ParseMail(&MailStruct, mail, MasterConfig->fqdn) != 0)
|
||||
{
|
||||
syslog(LOG_ERR, "Parsing the incoming mail failed.");
|
||||
exit(-1);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (MailStruct->From == NULL)
|
||||
@ -133,6 +133,6 @@ void approve_main(char* mail)
|
||||
else
|
||||
{
|
||||
syslog(LOG_ERR, "Failed to send email to \"%s\" concerning his request.", originator);
|
||||
exit(-1);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
|
||||
12
hermes.c
12
hermes.c
@ -145,7 +145,7 @@ void hermes_main(char * incoming_mail, const char * listname)
|
||||
else
|
||||
{
|
||||
syslog(LOG_ERR, "Failed to send email to \"%s\" concerning this request.", owner);
|
||||
exit(-1);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
return;
|
||||
}
|
||||
@ -177,7 +177,7 @@ void hermes_main(char * incoming_mail, const char * listname)
|
||||
else
|
||||
{
|
||||
syslog(LOG_ERR, "Failed to send email to \"%s\" concerning this request.", owner);
|
||||
exit(-1);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
return;
|
||||
}
|
||||
@ -217,7 +217,7 @@ void hermes_main(char * incoming_mail, const char * listname)
|
||||
else
|
||||
{
|
||||
syslog(LOG_ERR, "Failed to send email to \"%s\" concerning this request.", owner);
|
||||
exit(-1);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
return;
|
||||
}
|
||||
@ -235,7 +235,7 @@ void hermes_main(char * incoming_mail, const char * listname)
|
||||
if (rc < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "Can't add address to ack file.");
|
||||
exit(-1);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -247,7 +247,7 @@ void hermes_main(char * incoming_mail, const char * listname)
|
||||
if (rc < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "Can't verify whether address \"%s\" needs to be acknowledged or not.", MailStruct->From);
|
||||
exit(-1);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
else if (rc == 0)
|
||||
{
|
||||
@ -282,7 +282,7 @@ void hermes_main(char * incoming_mail, const char * listname)
|
||||
else
|
||||
{
|
||||
syslog(LOG_ERR, "Failed to send email to \"%s\" concerning this request.", owner);
|
||||
exit(-1);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user