From e40f378821be25ae4667d311cf3bf3374fe63e0d Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Fri, 26 Jan 2001 17:46:26 +0000 Subject: mar now uses bzlib, no more zlib --- mdk-stage1/mar/mar.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'mdk-stage1/mar/mar.h') diff --git a/mdk-stage1/mar/mar.h b/mdk-stage1/mar/mar.h index e9633ab92..672d7ded8 100644 --- a/mdk-stage1/mar/mar.h +++ b/mdk-stage1/mar/mar.h @@ -15,7 +15,7 @@ /* * mar - The Mandrake Archiver * - * An archiver that supports compression (through zlib). + * An archiver that supports compression (through bzlib). * * Designed to be small so these bad designs are inside: * . archive and compression are mixed together @@ -36,14 +36,13 @@ #include #include -#include +#include /* * Format of a mar file: * - * int crc32 \ * ASCIIZ filename \ | - * int file_length | repeated | gzipped + * int file_length | repeated | bzipped * int pointer_in_archive / | * char 0 | * raw_files_data / @@ -60,12 +59,11 @@ struct mar_element struct mar_stream { - int crc32; /* crc32 of the mar stream; it is the addition of all the 8-bit char's from the stream */ struct mar_element * first_element; /* pointer to the first element inside the mar stream */ - gzFile mar_gzfile; /* associated gzFile (opened) */ + BZFILE * mar_zfile; /* associated zfile (opened) */ }; -int gz_errnum; +int z_errnum; #define DEBUG_MAR(x) -- cgit v1.2.1