[gs-cvs] rev 8034 - trunk/gs/src
giles at ghostscript.com
giles at ghostscript.com
Fri Jun 8 11:12:47 PDT 2007
Author: giles
Date: 2007-06-08 11:12:46 -0700 (Fri, 08 Jun 2007)
New Revision: 8034
Modified:
trunk/gs/src/gp_unix_cache.c
Log:
Update the unix persistent cache implementation to use the new md5 namespace.
This file should have been included in r8032.
Modified: trunk/gs/src/gp_unix_cache.c
===================================================================
--- trunk/gs/src/gp_unix_cache.c 2007-06-08 18:03:34 UTC (rev 8033)
+++ trunk/gs/src/gp_unix_cache.c 2007-06-08 18:12:46 UTC (rev 8034)
@@ -31,7 +31,7 @@
int type;
int keylen;
byte *key;
- md5_byte_t hash[16];
+ gs_md5_byte_t hash[16];
char *filename;
int len;
void *buffer;
@@ -139,12 +139,12 @@
/* compute and set a cache key's hash */
private void gp_cache_hash(gp_cache_entry *entry)
{
- md5_state_t md5;
+ gs_md5_state_t md5;
/* we use md5 hashes of the key */
- md5_init(&md5);
- md5_append(&md5, entry->key, entry->keylen);
- md5_finish(&md5, entry->hash);
+ gs_md5_init(&md5);
+ gs_md5_append(&md5, entry->key, entry->keylen);
+ gs_md5_finish(&md5, entry->hash);
}
/* compute and set cache item's filename */
More information about the gs-cvs
mailing list