]> granicus.if.org Git - neomutt/commitdiff
Fix compiler warnings
authorFabian Groffen <grobian@gentoo.org>
Sat, 7 Apr 2007 23:13:55 +0000 (16:13 -0700)
committerFabian Groffen <grobian@gentoo.org>
Sat, 7 Apr 2007 23:13:55 +0000 (16:13 -0700)
hcache.c

index efb4eee9c2c42ee9989ca54292e52cd19eaf599b..8246ea7a4d1e1b2fddf03c10667bb7b57e3a3bdc 100644 (file)
--- a/hcache.c
+++ b/hcache.c
@@ -296,8 +296,10 @@ restore_buffer(BUFFER ** b, const unsigned char *d, int *off)
   restore_char(&(*b)->data, d, off);
   restore_int(&offset, d, off);
   (*b)->dptr = (*b)->data + offset;
-  restore_int((unsigned int *) &(*b)->dsize, d, off);
-  restore_int((unsigned int *) &(*b)->destroy, d, off);
+  restore_int (&used, d, off);
+  (*b)->dsize = used;
+  restore_int (&used, d, off);
+  (*b)->destroy = used;
 }
 
 static unsigned char *