aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-04-16 12:21:05 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-04-16 12:21:05 +0000
commitb85129edc889acebfd999878e63070e17a4daf8d (patch)
tree7b46ad950b25c37996ab27a676b160075096e20a
parent77981686c9cc81faa1be2ea08a9c0a14d8700aa9 (diff)
downloadbusybox-w32-b85129edc889acebfd999878e63070e17a4daf8d.tar.gz
busybox-w32-b85129edc889acebfd999878e63070e17a4daf8d.tar.bz2
busybox-w32-b85129edc889acebfd999878e63070e17a4daf8d.zip
- fix compilation if ENABLE_FEATURE_DD_IBS_OBS is off
git-svn-id: svn://busybox.net/trunk/busybox@18454 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--coreutils/dd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/coreutils/dd.c b/coreutils/dd.c
index 3011e005d..8b374aa8b 100644
--- a/coreutils/dd.c
+++ b/coreutils/dd.c
@@ -92,14 +92,14 @@ int dd_main(int argc, char **argv)
92 OP_skip, 92 OP_skip,
93 OP_if, 93 OP_if,
94 OP_of, 94 OP_of,
95USE_FEATURE_DD_IBS_OBS( 95#if ENABLE_FEATURE_DD_IBS_OBS
96 OP_ibs, 96 OP_ibs,
97 OP_obs, 97 OP_obs,
98 OP_conv, 98 OP_conv,
99 OP_conv_notrunc, 99 OP_conv_notrunc,
100 OP_conv_sync, 100 OP_conv_sync,
101 OP_conv_noerror, 101 OP_conv_noerror,
102) 102#endif
103 }; 103 };
104 int flags = trunc_flag; 104 int flags = trunc_flag;
105 size_t oc = 0, ibs = 512, obs = 512; 105 size_t oc = 0, ibs = 512, obs = 512;
@@ -139,7 +139,7 @@ USE_FEATURE_DD_IBS_OBS(
139 bb_show_usage(); 139 bb_show_usage();
140 arg += key_len; 140 arg += key_len;
141 /* Must fit into positive ssize_t */ 141 /* Must fit into positive ssize_t */
142 if (ENABLE_FEATURE_DD_IBS_OBS) { 142#if ENABLE_FEATURE_DD_IBS_OBS
143 if (what == OP_ibs) { 143 if (what == OP_ibs) {
144 ibs = xatoul_range_sfx(arg, 1, ((size_t)-1L)/2, dd_suffixes); 144 ibs = xatoul_range_sfx(arg, 1, ((size_t)-1L)/2, dd_suffixes);
145 continue; 145 continue;
@@ -172,7 +172,7 @@ USE_FEATURE_DD_IBS_OBS(
172 } 172 }
173 continue; 173 continue;
174 } 174 }
175 } 175#endif
176 if (what == OP_bs) { 176 if (what == OP_bs) {
177 ibs = obs = xatoul_range_sfx(arg, 1, ((size_t)-1L)/2, dd_suffixes); 177 ibs = obs = xatoul_range_sfx(arg, 1, ((size_t)-1L)/2, dd_suffixes);
178 continue; 178 continue;