diff options
Diffstat (limited to 'libstore/gunzip.c')
-rw-r--r-- | libstore/gunzip.c | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/libstore/gunzip.c b/libstore/gunzip.c index 7c449403..f47c0b2b 100644 --- a/libstore/gunzip.c +++ b/libstore/gunzip.c @@ -18,35 +18,14 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ -#include <stdio.h> -#include <string.h> -#include <setjmp.h> -#include <sys/mman.h> +#include <errno.h> -#include "store.h" - -/* gzip.h makes several annoying defines & decls, which we have to work - around. */ -#define file_t gzip_file_t -#include "gzip.h" -#undef file_t -#undef head +extern void do_gunzip (void); /* Entry point to gunzip engine. */ static error_t DO_UNZIP (void) { - /* Entry points to unzip engine. */ - int get_method (int); - extern long int bytes_out; - - if (get_method (0) != 0) - /* Not a happy gzip file. */ - return EINVAL; - - /* Matched gzip magic number. Ready to unzip. - Set up the output stream and let 'er rip. */ - bytes_out = 0; - unzip (17, 23); /* Arguments ignored. */ + do_gunzip (); return 0; } |