diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2000-11-20 15:21:31 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2000-11-20 15:21:31 +0000 |
commit | cbebfe6209cf200673bf91695e520124e4fd9134 (patch) | |
tree | 8735d35006a680e646c5fe9909aee0f74c8dfb08 /mdk-stage1/mar/mar.h | |
parent | 0dfe6bc6726c5a70f963e575c7dc5f8c481d6d90 (diff) | |
download | drakx-cbebfe6209cf200673bf91695e520124e4fd9134.tar drakx-cbebfe6209cf200673bf91695e520124e4fd9134.tar.gz drakx-cbebfe6209cf200673bf91695e520124e4fd9134.tar.bz2 drakx-cbebfe6209cf200673bf91695e520124e4fd9134.tar.xz drakx-cbebfe6209cf200673bf91695e520124e4fd9134.zip |
commiting modifs of Fri 17 (do not typedef the structs anymore, s/malloc/alloca when possible, return int all the time)
Diffstat (limited to 'mdk-stage1/mar/mar.h')
-rw-r--r-- | mdk-stage1/mar/mar.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mdk-stage1/mar/mar.h b/mdk-stage1/mar/mar.h index a5ea62aa0..bd731770b 100644 --- a/mdk-stage1/mar/mar.h +++ b/mdk-stage1/mar/mar.h @@ -53,20 +53,20 @@ * */ -typedef struct mar_element_s +struct mar_element { char * filename; /* filename (ASCIIZ) of the element */ int file_length; /* length (in bytes) of the raw data of the element */ int data_offset; /* seek start of the raw data in the underlying mar stream */ - struct mar_element_s * next_element; /* pointer to the next element in the mar stream; NULL if last */ -} mar_element; + struct mar_element * next_element; /* pointer to the next element in the mar stream; NULL if last */ +}; -typedef struct mar_stream_s +struct mar_stream { int crc32; /* crc32 of the mar stream; it is the addition of all the 8-bit char's from the stream */ - mar_element * first_element; /* pointer to the first element inside the mar stream */ + struct mar_element * first_element; /* pointer to the first element inside the mar stream */ gzFile mar_gzfile; /* associated gzFile (opened) */ -} mar_stream; +}; int gz_errnum; |