projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rationalize list handling in mutt a bit.
[apps/madmutt.git]
/
hcache.c
diff --git
a/hcache.c
b/hcache.c
index
e089bf1
..
714c204
100644
(file)
--- a/
hcache.c
+++ b/
hcache.c
@@
-42,6
+42,7
@@
#include <lib-lib/mem.h>
#include <lib-hash/hash.h>
#include <lib-lib/mem.h>
#include <lib-hash/hash.h>
+#include <lib-lib/debug.h>
#include <lib-mime/mime.h>
#include <lib-mime/mime.h>
@@
-50,8
+51,6
@@
#include "mx.h"
#include "lib.h"
#include "mx.h"
#include "lib.h"
-#include "lib/debug.h"
-
static struct header_cache {
#if defined(HAVE_QDBM)
VILLA *db;
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;
}
*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;
{
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;
}
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) {
{
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--;
restore_char (&(*l)->data, d, off);
l = &(*l)->next;
counter--;