From: Cyril Brulebois Date: Wed, 7 Nov 2007 18:52:45 +0000 (+0100) Subject: Fix dereferencing for the mutt_hcache_close calls. Use hcache_t* instead of evil... X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=commitdiff_plain;h=4b2f5f58e6b8e65e8524596d16752f7f1e5d58ca Fix dereferencing for the mutt_hcache_close calls. Use hcache_t* instead of evil-ish void* Hop, envoyé avec madmutt en plus o/ (Oué faut que j'apprenne à me servir du truc pour envoyer les patches. :p) -- Cyril Brulebois From da42d2d6850309997b209ffba4081da24463bb4f Mon Sep 17 00:00:00 2001 From: Cyril Brulebois Date: Wed, 7 Nov 2007 19:50:29 +0100 Subject: [PATCH] Fix dereferencing for the mutt_hcache_close calls. Use hcache_t* instead of evil-ish void* Signed-off-by: Pierre Habouzit --- diff --git a/lib-mx/mh.c b/lib-mx/mh.c index 3e1952b..dacef77 100644 --- a/lib-mx/mh.c +++ b/lib-mx/mh.c @@ -1229,7 +1229,7 @@ static int mh_sync_mailbox (CONTEXT * ctx, int unused __attribute__ ((unused)), int i, j; #ifdef USE_HCACHE - void *hc = NULL; + hcache_t *hc = NULL; #endif /* USE_HCACHE */ if (ctx->magic == M_MH) @@ -1286,7 +1286,7 @@ static int mh_sync_mailbox (CONTEXT * ctx, int unused __attribute__ ((unused)), #ifdef USE_HCACHE if (ctx->magic == M_MAILDIR) - mutt_hcache_close (hc); + mutt_hcache_close (&hc); #endif /* USE_HCACHE */ if (ctx->magic == M_MH) @@ -1311,7 +1311,7 @@ static int mh_sync_mailbox (CONTEXT * ctx, int unused __attribute__ ((unused)), err: #ifdef USE_HCACHE if (ctx->magic == M_MAILDIR) - mutt_hcache_close (hc); + mutt_hcache_close (&hc); #endif /* USE_HCACHE */ return -1; }