Tomas Janousek 17523a2
--- cyrus-imapd-2.3.9/imap/tls_prune.c.implicitdecl	2007-09-18 15:47:55.000000000 +0200
Tomas Janousek 17523a2
+++ cyrus-imapd-2.3.9/imap/tls_prune.c	2007-09-18 15:48:46.000000000 +0200
Tomas Janousek 17523a2
@@ -49,6 +49,7 @@
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
 #include "exitcodes.h"
Tomas Janousek 17523a2
 #include "global.h"
Tomas Janousek 17523a2
+#include "util.h"
Tomas Janousek 17523a2
 #include "tls.h"
Tomas Janousek 17523a2
 #include "xmalloc.h"
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
--- cyrus-imapd-2.3.9/imap/sync_client.c.implicitdecl	2007-09-18 15:36:52.000000000 +0200
Tomas Janousek 17523a2
+++ cyrus-imapd-2.3.9/imap/sync_client.c	2007-09-18 15:39:44.000000000 +0200
Tomas Janousek 17523a2
@@ -69,6 +69,8 @@
Tomas Janousek 17523a2
 #include "mailbox.h"
Tomas Janousek 17523a2
 #include "quota.h"
Tomas Janousek 17523a2
 #include "xmalloc.h"
Tomas Janousek 17523a2
+#include "xstrlcpy.h"
Tomas Janousek 17523a2
+#include "xstrlcat.h"
Tomas Janousek 17523a2
 #include "acl.h"
Tomas Janousek 17523a2
 #include "seen.h"
Tomas Janousek 17523a2
 #include "mboxname.h"
Tomas Janousek 17523a2
--- cyrus-imapd-2.3.9/imap/protocol.c.implicitdecl	2007-09-18 15:36:52.000000000 +0200
Tomas Janousek 17523a2
+++ cyrus-imapd-2.3.9/imap/protocol.c	2007-09-18 15:39:09.000000000 +0200
Tomas Janousek 17523a2
@@ -49,6 +49,8 @@
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
 #include "protocol.h"
Tomas Janousek 17523a2
 #include "xmalloc.h"
Tomas Janousek 17523a2
+#include "xstrlcpy.h"
Tomas Janousek 17523a2
+#include "xstrlcat.h"
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
 static char *imap_parsemechlist(const char *str, struct protocol_t *prot)
Tomas Janousek 17523a2
 {
Tomas Janousek 17523a2
--- cyrus-imapd-2.3.9/imap/ipurge.c.implicitdecl	2007-09-18 15:47:55.000000000 +0200
Tomas Janousek 17523a2
+++ cyrus-imapd-2.3.9/imap/ipurge.c	2007-09-18 15:48:26.000000000 +0200
Tomas Janousek 17523a2
@@ -61,6 +61,7 @@
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
 /* cyrus includes */
Tomas Janousek 17523a2
 #include "global.h"
Tomas Janousek 17523a2
+#include "util.h"
Tomas Janousek 17523a2
 #include "sysexits.h"
Tomas Janousek 17523a2
 #include "exitcodes.h"
Tomas Janousek 17523a2
 #include "imap_err.h"
Tomas Janousek 17523a2
--- cyrus-imapd-2.3.9/imap/cyrdump.c.implicitdecl	2007-09-18 15:47:55.000000000 +0200
Tomas Janousek 17523a2
+++ cyrus-imapd-2.3.9/imap/cyrdump.c	2007-09-18 15:48:30.000000000 +0200
Tomas Janousek 17523a2
@@ -54,6 +54,7 @@
Tomas Janousek 17523a2
 #include "assert.h"
Tomas Janousek 17523a2
 #include "exitcodes.h"
Tomas Janousek 17523a2
 #include "global.h"
Tomas Janousek 17523a2
+#include "util.h"
Tomas Janousek 17523a2
 #include "imapd.h"
Tomas Janousek 17523a2
 #include "imap_err.h"
Tomas Janousek 17523a2
 #include "imapurl.h"
Tomas Janousek 17523a2
--- cyrus-imapd-2.3.9/imap/fetchnews.c.implicitdecl	2007-09-18 15:36:52.000000000 +0200
Tomas Janousek 17523a2
+++ cyrus-imapd-2.3.9/imap/fetchnews.c	2007-09-18 15:48:50.000000000 +0200
Tomas Janousek 17523a2
@@ -60,10 +60,13 @@
Tomas Janousek 17523a2
 #include "cyrusdb.h"
Tomas Janousek 17523a2
 #include "exitcodes.h"
Tomas Janousek 17523a2
 #include "global.h"
Tomas Janousek 17523a2
+#include "util.h"
Tomas Janousek 17523a2
 #include "gmtoff.h"
Tomas Janousek 17523a2
 #include "lock.h"
Tomas Janousek 17523a2
 #include "prot.h"
Tomas Janousek 17523a2
 #include "xmalloc.h"
Tomas Janousek 17523a2
+#include "xstrlcpy.h"
Tomas Janousek 17523a2
+#include "xstrlcat.h"
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
 /* global state */
Tomas Janousek 17523a2
 const int config_need_data = 0;
Tomas Janousek 17523a2
--- cyrus-imapd-2.3.9/imap/sync_server.c.implicitdecl	2007-09-18 15:36:52.000000000 +0200
Tomas Janousek 17523a2
+++ cyrus-imapd-2.3.9/imap/sync_server.c	2007-09-18 15:40:02.000000000 +0200
Tomas Janousek 17523a2
@@ -94,6 +94,8 @@
Tomas Janousek 17523a2
 #include "util.h"
Tomas Janousek 17523a2
 #include "version.h"
Tomas Janousek 17523a2
 #include "xmalloc.h"
Tomas Janousek 17523a2
+#include "xstrlcpy.h"
Tomas Janousek 17523a2
+#include "xstrlcat.h"
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
 #include "sync_support.h"
Tomas Janousek 17523a2
 #include "sync_commit.h"
Tomas Janousek 17523a2
--- cyrus-imapd-2.3.9/imap/ctl_mboxlist.c.implicitdecl	2007-09-18 15:47:55.000000000 +0200
Tomas Janousek 17523a2
+++ cyrus-imapd-2.3.9/imap/ctl_mboxlist.c	2007-09-18 15:48:35.000000000 +0200
Tomas Janousek 17523a2
@@ -77,6 +77,7 @@
Tomas Janousek 17523a2
 #include "exitcodes.h"
Tomas Janousek 17523a2
 #include "imap_err.h"
Tomas Janousek 17523a2
 #include "global.h"
Tomas Janousek 17523a2
+#include "util.h"
Tomas Janousek 17523a2
 #include "libcyr_cfg.h"
Tomas Janousek 17523a2
 #include "mboxlist.h"
Tomas Janousek 17523a2
 #include "mupdate.h"
Tomas Janousek 17523a2
--- cyrus-imapd-2.3.9/imap/sync_support.c.implicitdecl	2007-09-18 15:36:52.000000000 +0200
Tomas Janousek 17523a2
+++ cyrus-imapd-2.3.9/imap/sync_support.c	2007-09-18 15:39:55.000000000 +0200
Tomas Janousek 17523a2
@@ -71,6 +71,8 @@
Tomas Janousek 17523a2
 #include "mailbox.h"
Tomas Janousek 17523a2
 #include "quota.h"
Tomas Janousek 17523a2
 #include "xmalloc.h"
Tomas Janousek 17523a2
+#include "xstrlcpy.h"
Tomas Janousek 17523a2
+#include "xstrlcat.h"
Tomas Janousek 17523a2
 #include "acl.h"
Tomas Janousek 17523a2
 #include "seen.h"
Tomas Janousek 17523a2
 #include "mboxname.h"
Tomas Janousek 17523a2
--- cyrus-imapd-2.3.9/imap/squatter.c.implicitdecl	2007-09-18 15:47:55.000000000 +0200
Tomas Janousek 17523a2
+++ cyrus-imapd-2.3.9/imap/squatter.c	2007-09-18 15:48:39.000000000 +0200
Tomas Janousek 17523a2
@@ -84,6 +84,7 @@
Tomas Janousek 17523a2
 #include "assert.h"
Tomas Janousek 17523a2
 #include "mboxlist.h"
Tomas Janousek 17523a2
 #include "global.h"
Tomas Janousek 17523a2
+#include "util.h"
Tomas Janousek 17523a2
 #include "exitcodes.h"
Tomas Janousek 17523a2
 #include "imap_err.h"
Tomas Janousek 17523a2
 #include "mailbox.h"
Tomas Janousek 17523a2
--- cyrus-imapd-2.3.9/imap/autosieve.c.implicitdecl	2007-09-18 15:42:01.000000000 +0200
Tomas Janousek 17523a2
+++ cyrus-imapd-2.3.9/imap/autosieve.c	2007-09-18 15:39:14.000000000 +0200
Tomas Janousek 17523a2
@@ -19,6 +19,9 @@
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
 #include "global.h"
Tomas Janousek 17523a2
 #include "util.h"
Tomas Janousek 17523a2
+#include "xmalloc.h"
Tomas Janousek 17523a2
+#include "xstrlcpy.h"
Tomas Janousek 17523a2
+#include "xstrlcat.h"
Tomas Janousek 17523a2
 #include "mailbox.h"
Tomas Janousek 17523a2
 #include "imap_err.h"
Tomas Janousek 17523a2
 #include "sieve_interface.h"
Tomas Janousek 17523a2
--- cyrus-imapd-2.3.9/imap/arbitron.c.implicitdecl	2007-09-18 15:47:55.000000000 +0200
Tomas Janousek 17523a2
+++ cyrus-imapd-2.3.9/imap/arbitron.c	2007-09-18 15:48:43.000000000 +0200
Tomas Janousek 17523a2
@@ -59,6 +59,7 @@
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
 #include "assert.h"
Tomas Janousek 17523a2
 #include "global.h"
Tomas Janousek 17523a2
+#include "util.h"
Tomas Janousek 17523a2
 #include "exitcodes.h"
Tomas Janousek 17523a2
 #include "hash.h"
Tomas Janousek 17523a2
 #include "imap_err.h"
Tomas Janousek 17523a2
--- cyrus-imapd-2.3.9/imap/mupdate.c.implicitdecl	2007-09-18 15:36:52.000000000 +0200
Tomas Janousek 17523a2
+++ cyrus-imapd-2.3.9/imap/mupdate.c	2007-09-18 15:39:34.000000000 +0200
Tomas Janousek 17523a2
@@ -87,6 +87,8 @@
Tomas Janousek 17523a2
 #include "util.h"
Tomas Janousek 17523a2
 #include "version.h"
Tomas Janousek 17523a2
 #include "xmalloc.h"
Tomas Janousek 17523a2
+#include "xstrlcpy.h"
Tomas Janousek 17523a2
+#include "xstrlcat.h"
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
 /* Sent to clients that we can't accept a connection for. */
Tomas Janousek 17523a2
 static const char SERVER_UNABLE_STRING[] = "* BYE \"Server Unable\"\r\n";
Tomas Janousek 17523a2
--- cyrus-imapd-2.3.9/imap/make_md5.c.implicitdecl	2007-09-18 15:47:55.000000000 +0200
Tomas Janousek 17523a2
+++ cyrus-imapd-2.3.9/imap/make_md5.c	2007-09-18 15:48:54.000000000 +0200
Tomas Janousek 17523a2
@@ -16,6 +16,7 @@
Tomas Janousek 17523a2
 #include <signal.h>
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
 #include "global.h"
Tomas Janousek 17523a2
+#include "util.h"
Tomas Janousek 17523a2
 #include "assert.h"
Tomas Janousek 17523a2
 #include "mboxlist.h"
Tomas Janousek 17523a2
 #include "exitcodes.h"
Tomas Janousek 17523a2
--- cyrus-imapd-2.3.9/imap/sync_commit.c.implicitdecl	2007-09-18 15:36:52.000000000 +0200
Tomas Janousek 17523a2
+++ cyrus-imapd-2.3.9/imap/sync_commit.c	2007-09-18 15:40:08.000000000 +0200
Tomas Janousek 17523a2
@@ -69,6 +69,8 @@
Tomas Janousek 17523a2
 #include "mailbox.h"
Tomas Janousek 17523a2
 #include "quota.h"
Tomas Janousek 17523a2
 #include "xmalloc.h"
Tomas Janousek 17523a2
+#include "xstrlcpy.h"
Tomas Janousek 17523a2
+#include "xstrlcat.h"
Tomas Janousek 17523a2
 #include "acl.h"
Tomas Janousek 17523a2
 #include "seen.h"
Tomas Janousek 17523a2
 #include "mboxname.h"
Tomas Janousek 17523a2
--- cyrus-imapd-2.3.9/imap/compile_sieve.c.implicitdecl	2007-09-18 15:27:37.000000000 +0200
Tomas Janousek 17523a2
+++ cyrus-imapd-2.3.9/imap/compile_sieve.c	2007-09-18 15:27:48.000000000 +0200
Tomas Janousek 17523a2
@@ -20,6 +20,7 @@
Tomas Janousek 17523a2
 #include "global.h"
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
 #include "util.h"
Tomas Janousek 17523a2
+#include "xmalloc.h"
Tomas Janousek 17523a2
 #include "mailbox.h"
Tomas Janousek 17523a2
 #include "imap_err.h"
Tomas Janousek 17523a2
 #include "sieve_interface.h"
Tomas Janousek 17523a2
--- cyrus-imapd-2.3.9/timsieved/timsieved.c.implicitdecl	2007-09-18 15:36:52.000000000 +0200
Tomas Janousek 17523a2
+++ cyrus-imapd-2.3.9/timsieved/timsieved.c	2007-09-18 15:40:35.000000000 +0200
Tomas Janousek 17523a2
@@ -73,6 +73,8 @@
Tomas Janousek 17523a2
 #include "prot.h"
Tomas Janousek 17523a2
 #include "libconfig.h"
Tomas Janousek 17523a2
 #include "xmalloc.h"
Tomas Janousek 17523a2
+#include "xstrlcpy.h"
Tomas Janousek 17523a2
+#include "xstrlcat.h"
Tomas Janousek 17523a2
 #include "exitcodes.h"
Tomas Janousek 17523a2
 #include "iptostring.h"
Tomas Janousek 17523a2
 #include "global.h"
Tomas Janousek 17523a2
--- cyrus-imapd-2.3.9/timsieved/actions.c.implicitdecl	2007-09-18 15:36:52.000000000 +0200
Tomas Janousek 17523a2
+++ cyrus-imapd-2.3.9/timsieved/actions.c	2007-09-18 15:40:25.000000000 +0200
Tomas Janousek 17523a2
@@ -69,6 +69,8 @@
Tomas Janousek 17523a2
 #include "global.h"
Tomas Janousek 17523a2
 #include "libconfig.h"
Tomas Janousek 17523a2
 #include "xmalloc.h"
Tomas Janousek 17523a2
+#include "xstrlcpy.h"
Tomas Janousek 17523a2
+#include "xstrlcat.h"
Tomas Janousek 17523a2
 #include "sieve_interface.h"
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
 #include "codes.h"
Tomas Janousek 17523a2
--- cyrus-imapd-2.3.9/timsieved/parser.c.implicitdecl	2007-09-18 15:36:52.000000000 +0200
Tomas Janousek 17523a2
+++ cyrus-imapd-2.3.9/timsieved/parser.c	2007-09-18 15:40:41.000000000 +0200
Tomas Janousek 17523a2
@@ -64,6 +64,8 @@
Tomas Janousek 17523a2
 #include "mboxname.h"
Tomas Janousek 17523a2
 #include "mboxlist.h"
Tomas Janousek 17523a2
 #include "xmalloc.h"
Tomas Janousek 17523a2
+#include "xstrlcpy.h"
Tomas Janousek 17523a2
+#include "xstrlcat.h"
Tomas Janousek 17523a2
 #include "prot.h"
Tomas Janousek 17523a2
 #include "tls.h"
Tomas Janousek 17523a2
 #include "lex.h"
Tomas Janousek 17523a2
--- cyrus-imapd-2.3.9/master/cyrusMasterMIB.c.implicitdecl	2007-09-18 15:36:52.000000000 +0200
Tomas Janousek 17523a2
+++ cyrus-imapd-2.3.9/master/cyrusMasterMIB.c	2007-09-18 15:39:06.000000000 +0200
Tomas Janousek 17523a2
@@ -52,6 +52,8 @@
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
 #include "master.h"
Tomas Janousek 17523a2
 #include "../imap/version.h"
Tomas Janousek 17523a2
+#include "xstrlcpy.h"
Tomas Janousek 17523a2
+#include "xstrlcat.h"
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
 /* 
Tomas Janousek 17523a2
  * cyrusMasterMIB_variables_oid:
Tomas Janousek 17523a2
--- cyrus-imapd-2.3.9/sieve/interp.c.implicitdecl	2007-09-18 15:36:52.000000000 +0200
Tomas Janousek 17523a2
+++ cyrus-imapd-2.3.9/sieve/interp.c	2007-09-18 15:38:40.000000000 +0200
Tomas Janousek 17523a2
@@ -33,6 +33,8 @@
Tomas Janousek 17523a2
 #include <string.h>
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
 #include "xmalloc.h"
Tomas Janousek 17523a2
+#include "xstrlcpy.h"
Tomas Janousek 17523a2
+#include "xstrlcat.h"
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
 #include "sieve_interface.h"
Tomas Janousek 17523a2
 #include "interp.h"
Tomas Janousek 17523a2
--- cyrus-imapd-2.3.9/sieve/addr.y.implicitdecl	2007-09-18 15:36:52.000000000 +0200
Tomas Janousek 17523a2
+++ cyrus-imapd-2.3.9/sieve/addr.y	2007-09-18 15:38:45.000000000 +0200
Tomas Janousek 17523a2
@@ -37,6 +37,8 @@
Tomas Janousek 17523a2
 #include "addr.h"
Tomas Janousek 17523a2
 #include "script.h"
Tomas Janousek 17523a2
 #include "xmalloc.h"
Tomas Janousek 17523a2
+#include "xstrlcpy.h"
Tomas Janousek 17523a2
+#include "xstrlcat.h"
Tomas Janousek 17523a2
     
Tomas Janousek 17523a2
 int yyerror(char *msg);
Tomas Janousek 17523a2
 extern int yylex(void);
Tomas Janousek 17523a2
--- cyrus-imapd-2.3.9/imtest/imtest.c.implicitdecl	2007-09-18 15:36:52.000000000 +0200
Tomas Janousek 17523a2
+++ cyrus-imapd-2.3.9/imtest/imtest.c	2007-09-18 15:40:14.000000000 +0200
Tomas Janousek 17523a2
@@ -82,6 +82,8 @@
Tomas Janousek 17523a2
 #include "imparse.h"
Tomas Janousek 17523a2
 #include "iptostring.h"
Tomas Janousek 17523a2
 #include "xmalloc.h"
Tomas Janousek 17523a2
+#include "xstrlcpy.h"
Tomas Janousek 17523a2
+#include "xstrlcat.h"
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
 #ifdef HAVE_SSL
Tomas Janousek 17523a2
 #include <openssl/ssl.h>
Tomas Janousek 17523a2
--- cyrus-imapd-2.3.9/ptclient/ptexpire.c.implicitdecl	2007-09-18 15:47:55.000000000 +0200
Tomas Janousek 17523a2
+++ cyrus-imapd-2.3.9/ptclient/ptexpire.c	2007-09-18 15:48:57.000000000 +0200
Tomas Janousek 17523a2
@@ -65,6 +65,7 @@
Tomas Janousek 17523a2
 #include "cyrusdb.h"
Tomas Janousek 17523a2
 #include "exitcodes.h"
Tomas Janousek 17523a2
 #include "global.h"
Tomas Janousek 17523a2
+#include "util.h"
Tomas Janousek 17523a2
 #include "libconfig.h"
Tomas Janousek 17523a2
 #include "lock.h"
Tomas Janousek 17523a2
 #include "xmalloc.h"
Tomas Janousek 17523a2
--- cyrus-imapd-2.3.9/ptclient/ldap.c.implicitdecl	2007-09-18 15:49:48.000000000 +0200
Tomas Janousek 17523a2
+++ cyrus-imapd-2.3.9/ptclient/ldap.c	2007-09-18 15:40:19.000000000 +0200
Tomas Janousek 17523a2
@@ -61,6 +61,9 @@
Tomas Janousek 17523a2
 #include <sys/un.h>
Tomas Janousek 17523a2
 #include <sys/uio.h>
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
+/* Functions like ldap_bind() have been deprecated in OpenLDAP 2.3 */
Tomas Janousek 17523a2
+#define LDAP_DEPRECATED 1
Tomas Janousek 17523a2
+
Tomas Janousek 17523a2
 #include <ldap.h>
Tomas Janousek 17523a2
 #include <lber.h>
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
@@ -74,6 +77,8 @@
Tomas Janousek 17523a2
 #include "auth_pts.h"
Tomas Janousek 17523a2
 #include "strhash.h"
Tomas Janousek 17523a2
 #include "xmalloc.h"
Tomas Janousek 17523a2
+#include "xstrlcpy.h"
Tomas Janousek 17523a2
+#include "xstrlcat.h"
Tomas Janousek 17523a2
 
Tomas Janousek 17523a2
 /* xxx this just uses the UNIX canonicalization semantics, which is
Tomas Janousek 17523a2
  * most likely wrong */