X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=hcache.c;h=714c204d71d92d33a64d352fbeefa468f2324bcf;hp=e089bf1ba361a69dca42c0c06d40b6e36b86dc48;hb=108f3c7ab59844591f7540347914ea57be5245e2;hpb=05bcba73c3b028d4c571b5cf754bfd4436e1f11c diff --git a/hcache.c b/hcache.c index e089bf1..714c204 100644 --- a/hcache.c +++ b/hcache.c @@ -42,6 +42,7 @@ #include #include +#include #include @@ -50,8 +51,6 @@ #include "mx.h" #include "lib.h" -#include "lib/debug.h" - static struct header_cache { #if defined(HAVE_QDBM) VILLA *db; @@ -201,7 +200,7 @@ static void restore_address (address_t ** a, const unsigned char *d, int *off) *a = NULL; } -static unsigned char *dump_list (LIST * l, unsigned char *d, int *off) +static unsigned char *dump_list (string_list_t * l, unsigned char *d, int *off) { unsigned int counter = 0; unsigned int start_off = *off; @@ -219,14 +218,14 @@ static unsigned char *dump_list (LIST * l, unsigned char *d, int *off) return d; } -static void restore_list (LIST ** l, const unsigned char *d, int *off) +static void restore_list (string_list_t ** l, const unsigned char *d, int *off) { unsigned int counter; restore_int (&counter, d, off); while (counter) { - *l = p_new(LIST, 1); + *l = p_new(string_list_t, 1); restore_char (&(*l)->data, d, off); l = &(*l)->next; counter--;