aboutsummaryrefslogtreecommitdiff
path: root/archival/bzip2.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-04-21 11:09:40 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-04-21 11:09:40 +0000
commit5e34ff29bcc870936ab18172f438a34d042d4e03 (patch)
treea5e7a528f2f916eb883f1161eadceacdf2dca4be /archival/bzip2.c
parent8b814b4a349e2262c0ad25793b05206a14651ebb (diff)
downloadbusybox-w32-5e34ff29bcc870936ab18172f438a34d042d4e03.tar.gz
busybox-w32-5e34ff29bcc870936ab18172f438a34d042d4e03.tar.bz2
busybox-w32-5e34ff29bcc870936ab18172f438a34d042d4e03.zip
*: mass renaming of USE_XXXX to IF_XXXX
and SKIP_XXXX to IF_NOT_XXXX - the second one was especially badly named. It was not skipping anything!
Diffstat (limited to 'archival/bzip2.c')
-rw-r--r--archival/bzip2.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/archival/bzip2.c b/archival/bzip2.c
index 8eb5ca9ae..bbaf56669 100644
--- a/archival/bzip2.c
+++ b/archival/bzip2.c
@@ -64,7 +64,7 @@ static uint8_t level;
64 * total written bytes so far otherwise 64 * total written bytes so far otherwise
65 */ 65 */
66static 66static
67USE_DESKTOP(long long) int bz_write(bz_stream *strm, void* rbuf, ssize_t rlen, void *wbuf) 67IF_DESKTOP(long long) int bz_write(bz_stream *strm, void* rbuf, ssize_t rlen, void *wbuf)
68{ 68{
69 int n, n2, ret; 69 int n, n2, ret;
70 70
@@ -98,13 +98,13 @@ USE_DESKTOP(long long) int bz_write(bz_stream *strm, void* rbuf, ssize_t rlen, v
98 if (rlen && strm->avail_in == 0) 98 if (rlen && strm->avail_in == 0)
99 break; 99 break;
100 } 100 }
101 return 0 USE_DESKTOP( + strm->total_out ); 101 return 0 IF_DESKTOP( + strm->total_out );
102} 102}
103 103
104static 104static
105USE_DESKTOP(long long) int compressStream(unpack_info_t *info UNUSED_PARAM) 105IF_DESKTOP(long long) int compressStream(unpack_info_t *info UNUSED_PARAM)
106{ 106{
107 USE_DESKTOP(long long) int total; 107 IF_DESKTOP(long long) int total;
108 ssize_t count; 108 ssize_t count;
109 bz_stream bzs; /* it's small */ 109 bz_stream bzs; /* it's small */
110#define strm (&bzs) 110#define strm (&bzs)
@@ -163,7 +163,7 @@ int bzip2_main(int argc UNUSED_PARAM, char **argv)
163 163
164 opt_complementary = "s2"; /* -s means -2 (compatibility) */ 164 opt_complementary = "s2"; /* -s means -2 (compatibility) */
165 /* Must match bbunzip's constants OPT_STDOUT, OPT_FORCE! */ 165 /* Must match bbunzip's constants OPT_STDOUT, OPT_FORCE! */
166 opt = getopt32(argv, "cfv" USE_BUNZIP2("dt") "123456789qzs"); 166 opt = getopt32(argv, "cfv" IF_BUNZIP2("dt") "123456789qzs");
167#if ENABLE_BUNZIP2 /* bunzip2_main may not be visible... */ 167#if ENABLE_BUNZIP2 /* bunzip2_main may not be visible... */
168 if (opt & 0x18) // -d and/or -t 168 if (opt & 0x18) // -d and/or -t
169 return bunzip2_main(argc, argv); 169 return bunzip2_main(argc, argv);