Rocco Rutte:
authorpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Sat, 8 Oct 2005 11:39:31 +0000 (11:39 +0000)
committerpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Sat, 8 Oct 2005 11:39:31 +0000 (11:39 +0000)
- add ID field to header caching to make it detect internal changes (instead of segfaults or sudden exits)

git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@540 e385b8ad-14ed-0310-8656-cc95a2468c6d

VERSION.svn
hcache.c

index d41de60..b9e5dd7 100644 (file)
@@ -1 +1 @@
-539
+540
index 1a86d4c..0be3292 100644 (file)
--- a/hcache.c
+++ b/hcache.c
@@ -14,6 +14,8 @@
 
 #ifdef USE_HCACHE
 
+#define MUTTNG_HCACHE_ID        "0x001"
+
 # if HAVE_INTTYPES_H
 #  include <inttypes.h>
 # else
@@ -445,9 +447,9 @@ static int generate_crc32 ()
   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
-               ("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));