[dovecot-cvs] dovecot/src/lib lib.c,1.12,1.13 lib.h,1.19,1.20

cras at dovecot.org cras at dovecot.org
Sun Sep 25 13:44:08 EEST 2005


Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv8127/lib

Modified Files:
	lib.c lib.h 
Log Message:
Removed null4 and replaced the few uses of it with buffer_append_zero().



Index: lib.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/lib.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- lib.c	11 Sep 2004 17:24:50 -0000	1.12
+++ lib.c	25 Sep 2005 10:44:04 -0000	1.13
@@ -6,8 +6,6 @@
 #include <stdlib.h>
 #include <time.h>
 
-unsigned char null4[4] = { 0, 0, 0, 0 };
-
 size_t nearest_power(size_t num)
 {
 	size_t n = 1;

Index: lib.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/lib.h,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- lib.h	12 Jul 2005 13:06:18 -0000	1.19
+++ lib.h	25 Sep 2005 10:44:04 -0000	1.20
@@ -38,8 +38,6 @@
 #include "array-decl.h" /* ARRAY_DEFINE()s may exist in any header */
 #include "strfuncs.h"
 
-extern unsigned char null4[4]; /* 4 zeros - useful for padding */
-
 size_t nearest_power(size_t num);
 
 void lib_init(void);



More information about the dovecot-cvs mailing list