summaryrefslogtreecommitdiff
path: root/initd/zram.c
diff options
context:
space:
mode:
Diffstat (limited to 'initd/zram.c')
-rw-r--r--initd/zram.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/initd/zram.c b/initd/zram.c
index 487d3d6..380fe0e 100644
--- a/initd/zram.c
+++ b/initd/zram.c
@@ -66,7 +66,7 @@ early_insmod(char *module)
modprobe[1] = path;
execvp(modprobe[0], modprobe);
ERROR("Can't exec %s: %m\n", modprobe[0]);
- exit(-1);
+ exit(EXIT_FAILURE);
}
if (pid <= 0) {
@@ -109,7 +109,7 @@ mount_zram_on_tmp(void)
if (!pid) {
execvp(mkfs[0], mkfs);
ERROR("Can't exec %s: %m\n", mkfs[0]);
- exit(-1);
+ exit(EXIT_FAILURE);
} else if (pid <= 0) {
ERROR("Can't exec %s: %m\n", mkfs[0]);
return -1;