diff --git a/approve.c b/approve.c index c5ef3ad..b2061c3 100644 --- a/approve.c +++ b/approve.c @@ -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); } } diff --git a/hermes.c b/hermes.c index 8f677f1..7219670 100644 --- a/hermes.c +++ b/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; }