diff options
author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-01-22 22:55:11 +0000 |
---|---|---|
committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-01-22 22:55:11 +0000 |
commit | 992cb48d69edf2d39dd860e116b2c81ef0b57caa (patch) | |
tree | 1c9eba853c728b5d734506e1c66c269d96fe46ea /archival/unzip.c | |
parent | 109a761214fa3176bf09b23b4b3f2cb7da5a6971 (diff) | |
download | busybox-w32-992cb48d69edf2d39dd860e116b2c81ef0b57caa.tar.gz busybox-w32-992cb48d69edf2d39dd860e116b2c81ef0b57caa.tar.bz2 busybox-w32-992cb48d69edf2d39dd860e116b2c81ef0b57caa.zip |
- add platform.h.
- use shorter boilerplate while at it.
git-svn-id: svn://busybox.net/trunk/busybox@13494 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'archival/unzip.c')
-rw-r--r-- | archival/unzip.c | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/archival/unzip.c b/archival/unzip.c index 50d148692..caac716cc 100644 --- a/archival/unzip.c +++ b/archival/unzip.c | |||
@@ -7,20 +7,7 @@ | |||
7 | * Loosely based on original busybox unzip applet by Laurence Anderson. | 7 | * Loosely based on original busybox unzip applet by Laurence Anderson. |
8 | * All options and features should work in this version. | 8 | * All options and features should work in this version. |
9 | * | 9 | * |
10 | * This program is free software; you can redistribute it and/or modify | 10 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. |
11 | * it under the terms of the GNU General Public License as published by | ||
12 | * the Free Software Foundation; either version 2 of the License, or | ||
13 | * (at your option) any later version. | ||
14 | * | ||
15 | * This program is distributed in the hope that it will be useful, | ||
16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
18 | * General Public License for more details. | ||
19 | * | ||
20 | * You should have received a copy of the GNU General Public License | ||
21 | * along with this program; if not, write to the Free Software | ||
22 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
23 | * | ||
24 | */ | 11 | */ |
25 | 12 | ||
26 | /* For reference see | 13 | /* For reference see |
@@ -79,12 +66,12 @@ typedef union { | |||
79 | unsigned short method; /* 4-5 */ | 66 | unsigned short method; /* 4-5 */ |
80 | unsigned short modtime; /* 6-7 */ | 67 | unsigned short modtime; /* 6-7 */ |
81 | unsigned short moddate; /* 8-9 */ | 68 | unsigned short moddate; /* 8-9 */ |
82 | unsigned int crc32 __attribute__ ((packed)); /* 10-13 */ | 69 | unsigned int crc32 ATTRIBUTE_PACKED; /* 10-13 */ |
83 | unsigned int cmpsize __attribute__ ((packed)); /* 14-17 */ | 70 | unsigned int cmpsize ATTRIBUTE_PACKED; /* 14-17 */ |
84 | unsigned int ucmpsize __attribute__ ((packed)); /* 18-21 */ | 71 | unsigned int ucmpsize ATTRIBUTE_PACKED; /* 18-21 */ |
85 | unsigned short filename_len; /* 22-23 */ | 72 | unsigned short filename_len; /* 22-23 */ |
86 | unsigned short extra_len; /* 24-25 */ | 73 | unsigned short extra_len; /* 24-25 */ |
87 | } formated __attribute__ ((packed)); | 74 | } formated ATTRIBUTE_PACKED; |
88 | } zip_header_t; | 75 | } zip_header_t; |
89 | 76 | ||
90 | static void unzip_skip(int fd, off_t skip) | 77 | static void unzip_skip(int fd, off_t skip) |