Whamcloud - gitweb
libext2fs: Fix ext2fs_iblk_{add,sub}_blocks() when the i_blocks_hi is non-zero
[tools/e2fsprogs.git] / lib / ext2fs / dblist_dir.c
index 6f370cd..07ed8af 100644 (file)
@@ -4,10 +4,9 @@
  * Copyright 1997 by 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 <stdio.h>
@@ -20,7 +19,7 @@
 #include "ext2_fs.h"
 #include "ext2fsP.h"
 
-static int db_dir_proc(ext2_filsys fs, struct ext2_db_entry *db_info,
+static int db_dir_proc(ext2_filsys fs, struct ext2_db_entry2 *db_info,
                       void *priv_data);
 
 errcode_t ext2fs_dblist_dir_iterate(ext2_dblist dblist,
@@ -53,7 +52,7 @@ errcode_t ext2fs_dblist_dir_iterate(ext2_dblist dblist,
        ctx.priv_data = priv_data;
        ctx.errcode = 0;
 
-       retval = ext2fs_dblist_iterate(dblist, db_dir_proc, &ctx);
+       retval = ext2fs_dblist_iterate2(dblist, db_dir_proc, &ctx);
 
        if (!block_buf)
                ext2fs_free_mem(&ctx.buf);
@@ -62,7 +61,7 @@ errcode_t ext2fs_dblist_dir_iterate(ext2_dblist dblist,
        return ctx.errcode;
 }
 
-static int db_dir_proc(ext2_filsys fs, struct ext2_db_entry *db_info,
+static int db_dir_proc(ext2_filsys fs, struct ext2_db_entry2 *db_info,
                       void *priv_data)
 {
        struct dir_context      *ctx;