diff options
author | Daniel Wagner <daniel.wagner@siemens.com> | 2017-06-12 12:50:43 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2017-06-14 10:53:15 +0200 |
commit | ccffc105b0b361150666f97b59ac72cff8466e9b (patch) | |
tree | 4c4b7022317a42172a187fa681896c514b27255e /jffsX-utils/jffs2dump.c | |
parent | 871c2f1e898fc692e2966092372ee9c4ce31bbc0 (diff) |
Use defines for exit code values
Make the usage of exit consist. That is use the pre defined exit
values.
Signed-off-by: Daniel Wagner <daniel.wagner@siemens.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'jffsX-utils/jffs2dump.c')
-rw-r--r-- | jffsX-utils/jffs2dump.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jffsX-utils/jffs2dump.c b/jffsX-utils/jffs2dump.c index a8d082b..82f3197 100644 --- a/jffsX-utils/jffs2dump.c +++ b/jffsX-utils/jffs2dump.c @@ -751,7 +751,7 @@ int main(int argc, char **argv) /* Open the input file */ if ((fd = open(img, O_RDONLY)) == -1) { perror("open input file"); - exit(1); + exit(EXIT_FAILURE); } // get image length @@ -762,7 +762,7 @@ int main(int argc, char **argv) if (!data) { perror("out of memory"); close (fd); - exit(1); + exit(EXIT_FAILURE); } if (datsize && oobsize) { @@ -796,5 +796,5 @@ int main(int argc, char **argv) free (data); // Return happy - exit (0); + exit (EXIT_SUCCESS); } |