projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move more things in the lib-ui.
[apps/madmutt.git]
/
hcache.c
diff --git
a/hcache.c
b/hcache.c
index
8560ef6
..
a757415
100644
(file)
--- a/
hcache.c
+++ b/
hcache.c
@@
-208,7
+208,7
@@
static void restore_list (string_list_t ** l, const unsigned char *d, int *off)
*l = NULL;
}
*l = NULL;
}
-static unsigned char *dump_parameter (
PARAMETER
* p, unsigned char *d,
+static unsigned char *dump_parameter (
parameter_t
* p, unsigned char *d,
int *off)
{
unsigned int counter = 0;
int *off)
{
unsigned int counter = 0;
@@
-229,21
+229,19
@@
static unsigned char *dump_parameter (PARAMETER * p, unsigned char *d,
}
static void
}
static void
-restore_parameter (
PARAMETER
** p, const unsigned char *d, int *off)
+restore_parameter (
parameter_t
** p, 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) {
- *p = p
_new(PARAMETER, 1
);
+ *p = p
arameter_new(
);
restore_char (&(*p)->attribute, d, off);
restore_char (&(*p)->value, d, off);
p = &(*p)->next;
counter--;
}
restore_char (&(*p)->attribute, d, off);
restore_char (&(*p)->value, d, off);
p = &(*p)->next;
counter--;
}
-
- *p = NULL;
}
static unsigned char *dump_body (BODY * c, unsigned char *d, int *off)
}
static unsigned char *dump_body (BODY * c, unsigned char *d, int *off)
@@
-506,7
+504,7
@@
HEADER *mutt_hcache_restore (const unsigned char *d, HEADER ** oh)
h->env = envelope_new();
restore_envelope (h->env, d, &off);
h->env = envelope_new();
restore_envelope (h->env, d, &off);
- h->content =
mutt_new_body
();
+ h->content =
body_new
();
restore_body (h->content, d, &off);
restore_char (&h->maildir_flags, d, &off);
restore_body (h->content, d, &off);
restore_char (&h->maildir_flags, d, &off);