diff options
author | Rob Landley <rob@landley.net> | 2006-07-16 08:14:35 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-07-16 08:14:35 +0000 |
commit | 534374755d618c9c36c9940c82756241c4b25a67 (patch) | |
tree | fac906b4fa40a68c53cecf20215a7a25b3b1cab6 /archival/gunzip.c | |
parent | afb94ecf2bb6c53ce2a381d6ce45a426243c76d9 (diff) | |
download | busybox-w32-534374755d618c9c36c9940c82756241c4b25a67.tar.gz busybox-w32-534374755d618c9c36c9940c82756241c4b25a67.tar.bz2 busybox-w32-534374755d618c9c36c9940c82756241c4b25a67.zip |
Cleaup read() and write() variants, plus a couple of new functions like
xlseek and fdlength() for the new mkswap.
Diffstat (limited to 'archival/gunzip.c')
-rw-r--r-- | archival/gunzip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archival/gunzip.c b/archival/gunzip.c index 069666f58..bd6047e13 100644 --- a/archival/gunzip.c +++ b/archival/gunzip.c | |||
@@ -112,10 +112,10 @@ int gunzip_main(int argc, char **argv) | |||
112 | } | 112 | } |
113 | 113 | ||
114 | /* do the decompression, and cleanup */ | 114 | /* do the decompression, and cleanup */ |
115 | if (bb_xread_char(src_fd) == 0x1f) { | 115 | if (xread_char(src_fd) == 0x1f) { |
116 | unsigned char magic2; | 116 | unsigned char magic2; |
117 | 117 | ||
118 | magic2 = bb_xread_char(src_fd); | 118 | magic2 = xread_char(src_fd); |
119 | #ifdef CONFIG_FEATURE_GUNZIP_UNCOMPRESS | 119 | #ifdef CONFIG_FEATURE_GUNZIP_UNCOMPRESS |
120 | if (magic2 == 0x9d) { | 120 | if (magic2 == 0x9d) { |
121 | status = uncompress(src_fd, dst_fd); | 121 | status = uncompress(src_fd, dst_fd); |