Whamcloud - gitweb
AOSP: Suppress warnings/errors for clang+mingw
[tools/e2fsprogs.git] / lib / ext2fs / undo_io.c
index f921218..1986241 100644 (file)
@@ -154,11 +154,11 @@ struct undo_private_data {
 #define E2UNDO_FEATURE_COMPAT_FS_OFFSET 0x1    /* the filesystem offset */
 
 static inline void e2undo_set_feature_fs_offset(struct undo_header *header) {
-       header->f_compat |= E2UNDO_FEATURE_COMPAT_FS_OFFSET;
+       header->f_compat |= ext2fs_le32_to_cpu(E2UNDO_FEATURE_COMPAT_FS_OFFSET);
 }
 
 static inline void e2undo_clear_feature_fs_offset(struct undo_header *header) {
-       header->f_compat &= ~E2UNDO_FEATURE_COMPAT_FS_OFFSET;
+       header->f_compat &= ~ext2fs_le32_to_cpu(E2UNDO_FEATURE_COMPAT_FS_OFFSET);
 }
 
 static io_manager undo_io_backing_manager;
@@ -381,7 +381,7 @@ static errcode_t undo_write_tdb(io_channel channel,
                 * Read one block using the backing I/O manager
                 * The backing I/O manager block size may be
                 * different from the tdb_data_size.
-                * Also we need to recalcuate the block number with respect
+                * Also we need to recalculate the block number with respect
                 * to the backing I/O manager.
                 */
                offset = block_num * data->tdb_data_size +