diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-19 09:29:47 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-19 09:29:47 +0000 |
commit | 636a1f85e89432601c59cdc3239fc867b4adf051 (patch) | |
tree | d43c9ca120c29bf2d4567b1bb0674c6a8bae2b6d /archival | |
parent | cb83abd7b6b052224c1f3b998e863aac76914afd (diff) | |
download | busybox-w32-636a1f85e89432601c59cdc3239fc867b4adf051.tar.gz busybox-w32-636a1f85e89432601c59cdc3239fc867b4adf051.tar.bz2 busybox-w32-636a1f85e89432601c59cdc3239fc867b4adf051.zip |
- use EXIT_{SUCCESS,FAILURE}. No object-code changes
Diffstat (limited to 'archival')
-rw-r--r-- | archival/libunarchive/get_header_tar.c | 2 | ||||
-rw-r--r-- | archival/libunarchive/open_transformer.c | 2 | ||||
-rw-r--r-- | archival/tar.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/archival/libunarchive/get_header_tar.c b/archival/libunarchive/get_header_tar.c index 0be29b7ce..187552c28 100644 --- a/archival/libunarchive/get_header_tar.c +++ b/archival/libunarchive/get_header_tar.c | |||
@@ -99,7 +99,7 @@ char get_header_tar(archive_handle_t *archive_handle) | |||
99 | * "tar: A lone zero block at N", where N = kilobyte | 99 | * "tar: A lone zero block at N", where N = kilobyte |
100 | * where EOF was met (not EOF block, actual EOF!), | 100 | * where EOF was met (not EOF block, actual EOF!), |
101 | * and tar will exit with error code 0. | 101 | * and tar will exit with error code 0. |
102 | * We will mimic exit(0), although we will not mimic | 102 | * We will mimic exit(EXIT_SUCCESS), although we will not mimic |
103 | * the message and we don't check whether we indeed | 103 | * the message and we don't check whether we indeed |
104 | * saw zero block directly before this. */ | 104 | * saw zero block directly before this. */ |
105 | if (i == 0) | 105 | if (i == 0) |
diff --git a/archival/libunarchive/open_transformer.c b/archival/libunarchive/open_transformer.c index 8fb860234..d0a2b7c36 100644 --- a/archival/libunarchive/open_transformer.c +++ b/archival/libunarchive/open_transformer.c | |||
@@ -40,7 +40,7 @@ int open_transformer(int src_fd, | |||
40 | close(fd_pipe.wr); /* Send EOF */ | 40 | close(fd_pipe.wr); /* Send EOF */ |
41 | close(src_fd); | 41 | close(src_fd); |
42 | } | 42 | } |
43 | exit(0); | 43 | exit(EXIT_SUCCESS); |
44 | #else | 44 | #else |
45 | { | 45 | { |
46 | char *argv[4]; | 46 | char *argv[4]; |
diff --git a/archival/tar.c b/archival/tar.c index be59f0441..545081a01 100644 --- a/archival/tar.c +++ b/archival/tar.c | |||
@@ -552,7 +552,7 @@ static void NOINLINE vfork_compressor(int tar_fd, int gzip) | |||
552 | /* exec gzip/bzip2 program/applet */ | 552 | /* exec gzip/bzip2 program/applet */ |
553 | BB_EXECLP(zip_exec, zip_exec, "-f", NULL); | 553 | BB_EXECLP(zip_exec, zip_exec, "-f", NULL); |
554 | vfork_exec_errno = errno; | 554 | vfork_exec_errno = errno; |
555 | _exit(1); | 555 | _exit(EXIT_FAILURE); |
556 | } | 556 | } |
557 | 557 | ||
558 | /* parent */ | 558 | /* parent */ |