summaryrefslogtreecommitdiff
path: root/util-linux/mkfs_reiser.c
diff options
context:
space:
mode:
authorDenys Vlasenko2010-05-09 00:13:40 +0200
committerDenys Vlasenko2010-05-09 00:13:40 +0200
commit6774386d95cec54258f23f69bc287c99e205ebdf (patch)
tree51a81051eb233a15e6107579c8573ecec5b09726 /util-linux/mkfs_reiser.c
parent19afe848eca8d3baf149cd7ed715489403360287 (diff)
downloadbusybox-6774386d95cec54258f23f69bc287c99e205ebdf.zip
busybox-6774386d95cec54258f23f69bc287c99e205ebdf.tar.gz
tune2fs: move to e2fsprogs
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/mkfs_reiser.c')
-rw-r--r--util-linux/mkfs_reiser.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/util-linux/mkfs_reiser.c b/util-linux/mkfs_reiser.c
index eb2c94d..f9a0ca8 100644
--- a/util-linux/mkfs_reiser.c
+++ b/util-linux/mkfs_reiser.c
@@ -8,15 +8,14 @@
*/
#include "libbb.h"
#include <linux/fs.h>
-#include "volume_id/volume_id_internal.h"
char BUG_wrong_field_size(void);
#define STORE_LE(field, value) \
do { \
if (sizeof(field) == 4) \
- field = cpu_to_le32(value); \
+ field = SWAP_LE32(value); \
else if (sizeof(field) == 2) \
- field = cpu_to_le16(value); \
+ field = SWAP_LE16(value); \
else if (sizeof(field) == 1) \
field = (value); \
else \
@@ -24,7 +23,7 @@ do { \
} while (0)
#define FETCH_LE32(field) \
- (sizeof(field) == 4 ? cpu_to_le32(field) : BUG_wrong_field_size())
+ (sizeof(field) == 4 ? SWAP_LE32(field) : BUG_wrong_field_size())
struct journal_params {
uint32_t jp_journal_1st_block; /* where does journal start from on its device */