projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updates, use compiler warnings, we have a good one, do that.
[apps/madmutt.git]
/
hcache.c
diff --git
a/hcache.c
b/hcache.c
index
1a86d4c
..
0febef6
100644
(file)
--- a/
hcache.c
+++ b/
hcache.c
@@
-14,6
+14,8
@@
#ifdef USE_HCACHE
#ifdef USE_HCACHE
+#define MUTTNG_HCACHE_ID "0x004"
+
# if HAVE_INTTYPES_H
# include <inttypes.h>
# else
# if HAVE_INTTYPES_H
# include <inttypes.h>
# else
@@
-374,6
+376,7
@@
static unsigned char *dump_envelope (ENVELOPE * e, unsigned char *d, int *off)
d = dump_char (e->supersedes, d, off);
d = dump_char (e->date, d, off);
d = dump_char (e->x_label, d, off);
d = dump_char (e->supersedes, d, off);
d = dump_char (e->date, d, off);
d = dump_char (e->x_label, d, off);
+ d = dump_char (e->list_post, d, off);
#ifdef USE_NNTP
d = dump_char (e->newsgroups, d, off);
#ifdef USE_NNTP
d = dump_char (e->newsgroups, d, off);
@@
-414,7
+417,8
@@
static void restore_envelope (ENVELOPE * e, const unsigned char *d, int *off)
restore_char (&e->supersedes, d, off);
restore_char (&e->date, d, off);
restore_char (&e->x_label, d, off);
restore_char (&e->supersedes, d, off);
restore_char (&e->date, d, off);
restore_char (&e->x_label, d, off);
-
+ restore_char (&e->list_post, d, off);
+
#ifdef USE_NNTP
restore_char (&e->newsgroups, d, off);
restore_char (&e->xref, d, off);
#ifdef USE_NNTP
restore_char (&e->newsgroups, d, off);
restore_char (&e->xref, d, off);
@@
-445,9
+449,9
@@
static int generate_crc32 ()
int crc = 0;
crc = crc32 (crc, (unsigned char const *)
int crc = 0;
crc = crc32 (crc, (unsigned char const *)
- "sithglan@stud.uni-erlangen.de[sithglan]|hcache.c|20041108231548|29613",
+
MUTTNG_HCACHE_ID
"sithglan@stud.uni-erlangen.de[sithglan]|hcache.c|20041108231548|29613",
str_len
str_len
- ("sithglan@stud.uni-erlangen.de[sithglan]|hcache.c|20041108231548|29613"));
+ (
MUTTNG_HCACHE_ID
"sithglan@stud.uni-erlangen.de[sithglan]|hcache.c|20041108231548|29613"));
#if HAVE_LANGINFO_CODESET
crc = crc32 (crc, (unsigned char const *) Charset, str_len (Charset));
#if HAVE_LANGINFO_CODESET
crc = crc32 (crc, (unsigned char const *) Charset, str_len (Charset));