git.annexia.org
/
hivex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d71ca5
)
hivexsh: Change some exit(1) -> exit(EXIT_FAILURE)
author
Richard Jones
<rjones@redhat.com>
Wed, 3 Feb 2010 17:52:05 +0000
(17:52 +0000)
committer
Richard Jones
<rjones@redhat.com>
Fri, 19 Feb 2010 14:58:16 +0000
(14:58 +0000)
hivex/hivexsh.c
patch
|
blob
|
history
diff --git
a/hivex/hivexsh.c
b/hivex/hivexsh.c
index
847954c
..
01a5ddc
100644
(file)
--- 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;