diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-12-26 10:42:51 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-12-26 10:42:51 +0000 |
commit | 52f326a239527e7242321661d2ba06b50daa3c43 (patch) | |
tree | af74820b70fa27929fe218c95822c20651b60637 /archival/unzip.c | |
parent | da5e86c349488f3ea31718b149ce9f0d1493b64b (diff) | |
download | busybox-w32-52f326a239527e7242321661d2ba06b50daa3c43.tar.gz busybox-w32-52f326a239527e7242321661d2ba06b50daa3c43.tar.bz2 busybox-w32-52f326a239527e7242321661d2ba06b50daa3c43.zip |
style fixes
last xcalloc replaced by xzalloc
git-svn-id: svn://busybox.net/trunk/busybox@17081 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'archival/unzip.c')
-rw-r--r-- | archival/unzip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archival/unzip.c b/archival/unzip.c index 1c03a4c47..570789427 100644 --- a/archival/unzip.c +++ b/archival/unzip.c | |||
@@ -112,7 +112,7 @@ int unzip_main(int argc, char **argv) | |||
112 | char key_buf[512]; | 112 | char key_buf[512]; |
113 | struct stat stat_buf; | 113 | struct stat stat_buf; |
114 | 114 | ||
115 | while((opt = getopt(argc, argv, "-d:lnopqx")) != -1) { | 115 | while ((opt = getopt(argc, argv, "-d:lnopqx")) != -1) { |
116 | switch (opt_range) { | 116 | switch (opt_range) { |
117 | case 0: /* Options */ | 117 | case 0: /* Options */ |
118 | switch (opt) { | 118 | switch (opt) { |
@@ -192,7 +192,7 @@ int unzip_main(int argc, char **argv) | |||
192 | } else { | 192 | } else { |
193 | static const char *const extn[] = {"", ".zip", ".ZIP"}; | 193 | static const char *const extn[] = {"", ".zip", ".ZIP"}; |
194 | int orig_src_fn_len = strlen(src_fn); | 194 | int orig_src_fn_len = strlen(src_fn); |
195 | for(i = 0; (i < 3) && (src_fd == -1); i++) { | 195 | for (i = 0; (i < 3) && (src_fd == -1); i++) { |
196 | strcpy(src_fn + orig_src_fn_len, extn[i]); | 196 | strcpy(src_fn + orig_src_fn_len, extn[i]); |
197 | src_fd = open(src_fn, O_RDONLY); | 197 | src_fd = open(src_fn, O_RDONLY); |
198 | } | 198 | } |