aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
Diffstat (limited to 'archival')
-rw-r--r--archival/libunarchive/header_skip.c2
-rw-r--r--archival/unzip.c23
2 files changed, 6 insertions, 19 deletions
diff --git a/archival/libunarchive/header_skip.c b/archival/libunarchive/header_skip.c
index 0b153980e..963d113a4 100644
--- a/archival/libunarchive/header_skip.c
+++ b/archival/libunarchive/header_skip.c
@@ -1,6 +1,6 @@
1#include <stdio.h> 1#include <stdio.h>
2#include "unarchive.h" 2#include "unarchive.h"
3 3
4extern void header_skip(const file_header_t *file_header __attribute__((unused))) 4extern void header_skip(const file_header_t *file_header ATTRIBUTE_UNUSED)
5{ 5{
6} 6}
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
90static void unzip_skip(int fd, off_t skip) 77static void unzip_skip(int fd, off_t skip)