[dovecot-cvs] dovecot/src/lib imem.h,1.3,1.4 mempool.h,1.4,1.5

cras at procontrol.fi cras at procontrol.fi
Mon Dec 2 15:46:00 EET 2002


Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv5447/lib

Modified Files:
	imem.h mempool.h 
Log Message:
We shouldn't cast sizeof() to unsigned int.



Index: imem.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib/imem.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- imem.h	8 Sep 2002 13:20:28 -0000	1.3
+++ imem.h	2 Dec 2002 13:45:58 -0000	1.4
@@ -5,7 +5,7 @@
 
 /* For easy allocation of memory from default memory pool. */
 #define i_new(type, count) \
-        ((type *) i_malloc((unsigned) sizeof(type) * (count)))
+        ((type *) i_malloc(sizeof(type) * (count)))
 void *i_malloc(size_t size);
 void i_free(void *mem);
 void *i_realloc(void *mem, size_t size);

Index: mempool.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib/mempool.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- mempool.h	26 Nov 2002 20:04:08 -0000	1.4
+++ mempool.h	2 Dec 2002 13:45:58 -0000	1.5
@@ -51,7 +51,7 @@
 
 /* Extra macros to make life easier: */
 #define p_new(pool, type, count) \
-	((type *) p_malloc(pool, (unsigned) sizeof(type) * (count)))
+	((type *) p_malloc(pool, sizeof(type) * (count)))
 #define p_free_and_null(pool, rec) \
 	STMT_START { \
           p_free(pool, rec); \




More information about the dovecot-cvs mailing list