X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-mx%2Fmh.c;h=30a987fee3aa757be303ded34995230b6bd458b8;hp=38ad5e30604883d16da771ed37bde64e7f4e40c5;hb=388148b48fedd8007192a5f94cf0bad89c65227b;hpb=b6980caf7b13994c57957872876cdecc21e54a82 diff --git a/lib-mx/mh.c b/lib-mx/mh.c index 38ad5e3..30a987f 100644 --- a/lib-mx/mh.c +++ b/lib-mx/mh.c @@ -730,7 +730,7 @@ static void maildir_delayed_parsing (CONTEXT * ctx, struct maildir *md) int count; #ifdef USE_HCACHE - void *hc = NULL; + hcache_t *hc = NULL; void *data; struct timeval *when = NULL; struct stat lastchanged; @@ -762,7 +762,7 @@ static void maildir_delayed_parsing (CONTEXT * ctx, struct maildir *md) } if (data != NULL && !ret && lastchanged.st_mtime <= when->tv_sec) { - p->h = mutt_hcache_restore ((unsigned char *) data, &p->h); + p->h = mutt_hcache_restore(data, &p->h); maildir_parse_flags (p->h, fn); } else @@ -781,7 +781,7 @@ static void maildir_delayed_parsing (CONTEXT * ctx, struct maildir *md) #endif } #ifdef USE_HCACHE - mutt_hcache_close (hc); + mutt_hcache_close (&hc); #endif }