diff options
author | Bernhard Reutner-Fischer | 2008-05-19 09:29:47 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer | 2008-05-19 09:29:47 +0000 |
commit | 636a1f85e89432601c59cdc3239fc867b4adf051 (patch) | |
tree | d43c9ca120c29bf2d4567b1bb0674c6a8bae2b6d /archival | |
parent | cb83abd7b6b052224c1f3b998e863aac76914afd (diff) | |
download | busybox-636a1f85e89432601c59cdc3239fc867b4adf051.zip busybox-636a1f85e89432601c59cdc3239fc867b4adf051.tar.gz |
- 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 0be29b7..187552c 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) * "tar: A lone zero block at N", where N = kilobyte * where EOF was met (not EOF block, actual EOF!), * and tar will exit with error code 0. - * We will mimic exit(0), although we will not mimic + * We will mimic exit(EXIT_SUCCESS), although we will not mimic * the message and we don't check whether we indeed * saw zero block directly before this. */ if (i == 0) diff --git a/archival/libunarchive/open_transformer.c b/archival/libunarchive/open_transformer.c index 8fb8602..d0a2b7c 100644 --- a/archival/libunarchive/open_transformer.c +++ b/archival/libunarchive/open_transformer.c @@ -40,7 +40,7 @@ int open_transformer(int src_fd, close(fd_pipe.wr); /* Send EOF */ close(src_fd); } - exit(0); + exit(EXIT_SUCCESS); #else { char *argv[4]; diff --git a/archival/tar.c b/archival/tar.c index be59f04..545081a 100644 --- a/archival/tar.c +++ b/archival/tar.c @@ -552,7 +552,7 @@ static void NOINLINE vfork_compressor(int tar_fd, int gzip) /* exec gzip/bzip2 program/applet */ BB_EXECLP(zip_exec, zip_exec, "-f", NULL); vfork_exec_errno = errno; - _exit(1); + _exit(EXIT_FAILURE); } /* parent */ |