summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assoc.c2
-rw-r--r--daemon.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/assoc.c b/assoc.c
index 271ba62..14f8f83 100644
--- a/assoc.c
+++ b/assoc.c
@@ -485,7 +485,7 @@ void assoc_init(void) {
primary_hashtable = malloc(hash_size);
if (! primary_hashtable) {
fprintf(stderr, "Failed to init hashtable.\n");
- exit(1);
+ exit(EXIT_FAILURE);
}
memset(primary_hashtable, 0, hash_size);
}
diff --git a/daemon.c b/daemon.c
index b80c53e..5ea6df7 100644
--- a/daemon.c
+++ b/daemon.c
@@ -50,7 +50,7 @@ daemon(nochdir, noclose)
case 0:
break;
default:
- _exit(0);
+ _exit(EXIT_SUCCESS);
}
if (setsid() == -1)