Rocco Rutte:
[apps/madmutt.git] / hcache.c
index 62ef8dc..9541f65 100644 (file)
--- a/hcache.c
+++ b/hcache.c
@@ -907,7 +907,7 @@ void *mutt_hcache_open (const char *path, const char *folder)
   }
 
   ret =
   }
 
   ret =
-    h->env->open (h->env, NULL, DB_INIT_MPOOL | DB_CREATE | DB_PRIVATE, 0600);
+    (h->env->open)(h->env, NULL, DB_INIT_MPOOL | DB_CREATE | DB_PRIVATE, 0600);
   if (!ret) {
     ret = db_create (&h->db, h->env, 0);
     if (ret) {
   if (!ret) {
     ret = db_create (&h->db, h->env, 0);
     if (ret) {
@@ -924,7 +924,7 @@ void *mutt_hcache_open (const char *path, const char *folder)
     h->db->set_pagesize (h->db, pagesize);
   }
 
     h->db->set_pagesize (h->db, pagesize);
   }
 
-  ret = h->db->open (h->db, NULL, path, folder, DB_BTREE, createflags, 0600);
+  ret = (h->db->open)(h->db, NULL, path, folder, DB_BTREE, createflags, 0600);
   if (ret) {
     h->db->close (h->db, 0);
     h->env->close (h->env, 0);
   if (ret) {
     h->db->close (h->db, 0);
     h->env->close (h->env, 0);
@@ -940,7 +940,6 @@ void *mutt_hcache_open (const char *path, const char *folder)
 void mutt_hcache_close (void *db)
 {
   struct header_cache *h = db;
 void mutt_hcache_close (void *db)
 {
   struct header_cache *h = db;
-  int ret;
 
   if (!h) {
     return;
 
   if (!h) {
     return;