Whamcloud - gitweb
libext2fs: move the alignment field from unix_io to the io_manager
[tools/e2fsprogs.git] / lib / ext2fs / write_bb_file.c
index 5550765..5834340 100644 (file)
@@ -4,23 +4,19 @@
  * Copyright (C) 1994, 1995 Theodore Ts'o.
  *
  * %Begin-Header%
- * This file may be redistributed under the terms of the GNU Public
- * License.
+ * This file may be redistributed under the terms of the GNU Library
+ * General Public License, version 2.
  * %End-Header%
  */
 
+#include "config.h"
 #include <stdio.h>
 
-#if EXT2_FLAT_INCLUDES
 #include "ext2_fs.h"
-#else
-#include <linux/ext2_fs.h>
-#endif
-
 #include "ext2fs.h"
 
 errcode_t ext2fs_write_bb_FILE(ext2_badblocks_list bb_list,
-                              unsigned int flags,
+                              unsigned int flags EXT2FS_ATTR((unused)),
                               FILE *f)
 {
        badblocks_iterate       bb_iter;
@@ -32,7 +28,7 @@ errcode_t ext2fs_write_bb_FILE(ext2_badblocks_list bb_list,
                return retval;
 
        while (ext2fs_badblocks_list_iterate(bb_iter, &blk)) {
-               fprintf(f, "%d\n", blk);
+               fprintf(f, "%u\n", blk);
        }
        ext2fs_badblocks_list_iterate_end(bb_iter);
        return 0;