summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hivex/hivexsh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hivex/hivexsh.c b/hivex/hivexsh.c
index 847954cd..01a5ddcb 100644
--- a/hivex/hivexsh.c
+++ b/hivex/hivexsh.c
@@ -220,7 +220,7 @@ set_prompt_string (void)
fp = open_memstream (&ptr, &size);
if (fp == NULL) {
perror ("open_memstream");
- exit (1);
+ exit (EXIT_FAILURE);
}
if (h) {
@@ -570,7 +570,7 @@ cmd_ls (char *args)
char **names = calloc (len, sizeof (char *));
if (names == NULL) {
perror ("malloc");
- exit (1);
+ exit (EXIT_FAILURE);
}
int ret = -1;