1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-20 11:55:20 +00:00

use EXIT_SUCCESS and EXIT_FAILURE instead of 0 and 1 when calling exit

This commit is contained in:
Nikolas Garofil 2009-07-27 01:29:57 +02:00
parent 81f82b4b81
commit fdbadce291
2 changed files with 5 additions and 5 deletions

View File

@ -260,7 +260,7 @@ static void print_version(void)
#endif /* HAVE_LUA */ #endif /* HAVE_LUA */
); );
exit(0); exit(EXIT_SUCCESS);
} }
static const char *suffixes[] = { "B", "KiB", "MiB", "GiB", "TiB", "PiB", "" }; static const char *suffixes[] = { "B", "KiB", "MiB", "GiB", "TiB", "PiB", "" };

View File

@ -458,12 +458,12 @@ void *imap_thread(void *arg)
#ifdef HAVE_GETHOSTBYNAME_R #ifdef HAVE_GETHOSTBYNAME_R
if (gethostbyname_r(mail->host, &he, hostbuff, sizeof(hostbuff), &he_res, &he_errno)) { // get the host info if (gethostbyname_r(mail->host, &he, hostbuff, sizeof(hostbuff), &he_res, &he_errno)) { // get the host info
ERR("IMAP gethostbyname_r: %s", hstrerror(h_errno)); ERR("IMAP gethostbyname_r: %s", hstrerror(h_errno));
exit(1); exit(EXIT_FAILURE);
} }
#else /* HAVE_GETHOSTBYNAME_R */ #else /* HAVE_GETHOSTBYNAME_R */
if ((he_res = gethostbyname(mail->host)) == NULL) { // get the host info if ((he_res = gethostbyname(mail->host)) == NULL) { // get the host info
herror("gethostbyname"); herror("gethostbyname");
exit(1); exit(EXIT_FAILURE);
} }
#endif /* HAVE_GETHOSTBYNAME_R */ #endif /* HAVE_GETHOSTBYNAME_R */
while (fail < mail->retries) { while (fail < mail->retries) {
@ -767,12 +767,12 @@ void *pop3_thread(void *arg)
#ifdef HAVE_GETHOSTBYNAME_R #ifdef HAVE_GETHOSTBYNAME_R
if (gethostbyname_r(mail->host, &he, hostbuff, sizeof(hostbuff), &he_res, &he_errno)) { // get the host info if (gethostbyname_r(mail->host, &he, hostbuff, sizeof(hostbuff), &he_res, &he_errno)) { // get the host info
ERR("POP3 gethostbyname_r: %s", hstrerror(h_errno)); ERR("POP3 gethostbyname_r: %s", hstrerror(h_errno));
exit(1); exit(EXIT_FAILURE);
} }
#else /* HAVE_GETHOSTBYNAME_R */ #else /* HAVE_GETHOSTBYNAME_R */
if ((he_res = gethostbyname(mail->host)) == NULL) { // get the host info if ((he_res = gethostbyname(mail->host)) == NULL) { // get the host info
herror("gethostbyname"); herror("gethostbyname");
exit(1); exit(EXIT_FAILURE);
} }
#endif /* HAVE_GETHOSTBYNAME_R */ #endif /* HAVE_GETHOSTBYNAME_R */
while (fail < mail->retries) { while (fail < mail->retries) {