diff options
author | Denis Vlasenko | 2007-03-07 22:02:23 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-03-07 22:02:23 +0000 |
commit | ab9eef21a57c23567505e8fbceb8e5ea76306ce1 (patch) | |
tree | 800845b64d0e9a204743656c4d267cc6c9917cde /archival/libunarchive/check_header_gzip.c | |
parent | 8e858e2700651a0e973169b579622cd3dcd0defd (diff) | |
download | busybox-ab9eef21a57c23567505e8fbceb8e5ea76306ce1.zip busybox-ab9eef21a57c23567505e8fbceb8e5ea76306ce1.tar.gz |
bunzip2/gunzip/uncompress/unlzma: merge into common code -
fix few corner cases, reduce size by 450 bytes. Update testsuite.
Diffstat (limited to 'archival/libunarchive/check_header_gzip.c')
-rw-r--r-- | archival/libunarchive/check_header_gzip.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/archival/libunarchive/check_header_gzip.c b/archival/libunarchive/check_header_gzip.c index 0cfa944..09cd6a9 100644 --- a/archival/libunarchive/check_header_gzip.c +++ b/archival/libunarchive/check_header_gzip.c @@ -2,12 +2,11 @@ /* * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. */ -#include <stdlib.h> -#include <unistd.h> + #include "libbb.h" -#include "unarchive.h" /* for external decl of check_header_gzip */ +#include "unarchive.h" /* for external decl of check_header_gzip_or_die */ -void check_header_gzip(int src_fd) +void check_header_gzip_or_die(int src_fd) { union { unsigned char raw[8]; @@ -57,6 +56,4 @@ void check_header_gzip(int src_fd) xread_char(src_fd); xread_char(src_fd); } - - return; } |