summaryrefslogtreecommitdiff
path: root/src/imap_search.c
diff options
context:
space:
mode:
authorrobi <robi>2011-12-16 20:10:38 +0000
committerrobi <robi>2011-12-16 20:10:38 +0000
commitbe0c55229494231393ae0f122cac8d19753d6804 (patch)
tree2a24350baffbeab4b2896261d0c57e7cf6579c43 /src/imap_search.c
parentae69498e24734878c5b4116bbef0801312fc9b7d (diff)
BUG #018427: support for libext2fs 1.41.x and 1.42.x
Diffstat (limited to 'src/imap_search.c')
-rw-r--r--src/imap_search.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/imap_search.c b/src/imap_search.c
index 42fb207..d397380 100644
--- a/src/imap_search.c
+++ b/src/imap_search.c
@@ -40,8 +40,8 @@ struct privat {
//Subfunction for "local_block_iterate3()" for load the first blocks to identify filetype
-int first_blocks ( ext2_filsys fs, blk_t *blocknr, e2_blkcnt_t blockcnt,
- blk_t /*ref_blk*/x, int /*ref_offset*/y, void *priv )
+int first_blocks ( ext2_filsys fs, blk64_t *blocknr, e2_blkcnt_t blockcnt,
+ blk64_t /*ref_blk*/x, int /*ref_offset*/y, void *priv )
{
char *charbuf = NULL;
((struct privat*)priv)->buf;
@@ -183,7 +183,11 @@ inode_per_block = blocksize / inodesize;
inode_block_group = inode_per_group / inode_per_block;
for (group = 0 ; group < current_fs->group_desc_count ; group++){
+#ifdef EXT2_FLAG_64BITS
+ gdp = ext2fs_group_desc(current_fs, current_fs->group_desc, group);
+#else
gdp = &current_fs->group_desc[group];
+#endif
zero_flag = 0;
if (!(flag & 0x02)){ //skip this in disaster mode