diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-24 13:07:55 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-24 13:07:55 +0200 |
commit | fc2bb8f04f048bf60a8b53bd6ad04eef1b8d3626 (patch) | |
tree | dfa98651c35091abb83592c5e35f4ba33b67a669 /archival/unzip.c | |
parent | e98884b9bec7cca415f1813764741bf18b70e8cf (diff) | |
download | busybox-w32-fc2bb8f04f048bf60a8b53bd6ad04eef1b8d3626.tar.gz busybox-w32-fc2bb8f04f048bf60a8b53bd6ad04eef1b8d3626.tar.bz2 busybox-w32-fc2bb8f04f048bf60a8b53bd6ad04eef1b8d3626.zip |
unzip: another small code shrink
function old new delta
find_cdf_offset 173 160 -13
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
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 5e8bac356..1d3291ab8 100644 --- a/archival/unzip.c +++ b/archival/unzip.c | |||
@@ -159,9 +159,9 @@ static uint32_t find_cdf_offset(void) | |||
159 | off_t end; | 159 | off_t end; |
160 | 160 | ||
161 | end = xlseek(zip_fd, 0, SEEK_END); | 161 | end = xlseek(zip_fd, 0, SEEK_END); |
162 | if (end < 1024) | ||
163 | end = 1024; | ||
164 | end -= 1024; | 162 | end -= 1024; |
163 | if (end < 0) | ||
164 | end = 0; | ||
165 | xlseek(zip_fd, end, SEEK_SET); | 165 | xlseek(zip_fd, end, SEEK_SET); |
166 | full_read(zip_fd, buf, 1024); | 166 | full_read(zip_fd, buf, 1024); |
167 | 167 | ||