Re: Problem with cssstat
Benoit Izac <[email protected]>
| Newsgroups | gmane.mail.spam.dspam.devel |
|---|---|
| Message-ID | <[email protected]> |
I wrote : > patch attached. I've got a better one which suppress the warning compilation. Nobody to commit it? Regards. -- Benoit Izac ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev _______________________________________________ Dspam-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspam-devel
dspam.patch
(text/x-patch, 816 B)
diff --git a/src/tools.hash_drv/cssstat.c b/src/tools.hash_drv/cssstat.c
index dcf7ae2..031130b 100644
--- a/src/tools.hash_drv/cssstat.c
+++ b/src/tools.hash_drv/cssstat.c
@@ -137,8 +137,7 @@ int cssstat(const char *filename) {
(unsigned long) header->hash_rec_max);
efree = eused = 0;
for(i=0;i<header->hash_rec_max;i++) {
- rec = map.addr;
- rec += filepos;
+ rec = (void *) ((unsigned long) map.addr + filepos);
if (rec->hashcode) {
eused++;
nused++;
@@ -148,8 +147,7 @@ int cssstat(const char *filename) {
}
filepos += sizeof(struct _hash_drv_spam_record);
}
- header = map.addr;
- header += filepos;
+ header = (void *) ((unsigned long) map.addr + filepos);
filepos += sizeof(struct _hash_drv_header);
extents++;