aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mkfs_vfat.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-09-28 15:13:04 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2018-09-28 15:13:04 +0200
commitabfa3ec0598ff431407224c6b81682f7d0d35495 (patch)
treee5387999595e1f0c383c4aced38fe5a24dd90ef0 /util-linux/mkfs_vfat.c
parentaae428f0bf0fcd6cd0a2503b3a50de43785b8fd0 (diff)
downloadbusybox-w32-abfa3ec0598ff431407224c6b81682f7d0d35495.tar.gz
busybox-w32-abfa3ec0598ff431407224c6b81682f7d0d35495.tar.bz2
busybox-w32-abfa3ec0598ff431407224c6b81682f7d0d35495.zip
move storage helpers to libbb.h
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/mkfs_vfat.c')
-rw-r--r--util-linux/mkfs_vfat.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/util-linux/mkfs_vfat.c b/util-linux/mkfs_vfat.c
index 92f0e3b1a..6a6dc652f 100644
--- a/util-linux/mkfs_vfat.c
+++ b/util-linux/mkfs_vfat.c
@@ -206,19 +206,6 @@ static const char boot_code[] ALIGN1 =
206#define MARK_CLUSTER(cluster, value) \ 206#define MARK_CLUSTER(cluster, value) \
207 ((uint32_t *)fat)[cluster] = SWAP_LE32(value) 207 ((uint32_t *)fat)[cluster] = SWAP_LE32(value)
208 208
209void BUG_unsupported_field_size(void);
210#define STORE_LE(field, value) \
211do { \
212 if (sizeof(field) == 4) \
213 field = SWAP_LE32((uint32_t)(value)); \
214 else if (sizeof(field) == 2) \
215 field = SWAP_LE16((uint16_t)(value)); \
216 else if (sizeof(field) == 1) \
217 field = (uint8_t)(value); \
218 else \
219 BUG_unsupported_field_size(); \
220} while (0)
221
222/* compat: 209/* compat:
223 * mkdosfs 2.11 (12 Mar 2005) 210 * mkdosfs 2.11 (12 Mar 2005)
224 * Usage: mkdosfs [-A] [-c] [-C] [-v] [-I] [-l bad-block-file] 211 * Usage: mkdosfs [-A] [-c] [-C] [-v] [-I] [-l bad-block-file]