c222874
diff -up cyrus-sasl-2.1.22/lib/auxprop.c.warnings cyrus-sasl-2.1.22/lib/auxprop.c
c222874
--- cyrus-sasl-2.1.22/lib/auxprop.c.warnings	2006-03-14 15:23:55.000000000 +0100
c222874
+++ cyrus-sasl-2.1.22/lib/auxprop.c	2008-09-10 14:31:01.000000000 +0200
c222874
@@ -46,6 +46,7 @@
c222874
 #include <sasl.h>
c222874
 #include <prop.h>
c222874
 #include <ctype.h>
c222874
+#include <stdio.h>
c222874
 #include "saslint.h"
c222874
 
c222874
 struct proppool 
c222874
diff -up cyrus-sasl-2.1.22/lib/server.c.warnings cyrus-sasl-2.1.22/lib/server.c
c222874
--- cyrus-sasl-2.1.22/lib/server.c.warnings	2006-05-17 18:46:13.000000000 +0200
c222874
+++ cyrus-sasl-2.1.22/lib/server.c	2008-09-10 14:39:02.000000000 +0200
c222874
@@ -517,7 +517,7 @@ static int load_config(const sasl_callba
c222874
             goto done;
c222874
         }
c222874
 
c222874
-        snprintf(config_filename, len, "%.*s%c%s.conf", path_len, path_to_config, 
c222874
+        snprintf(config_filename, len, "%.*s%c%s.conf", (int)path_len, path_to_config, 
c222874
 	        HIER_DELIMITER, global_callbacks.appname);
c222874
 
c222874
         /* Ask the application if it's safe to use this file */
c222874
diff -up cyrus-sasl-2.1.22/plugins/gssapi.c.warnings cyrus-sasl-2.1.22/plugins/gssapi.c
c222874
--- cyrus-sasl-2.1.22/plugins/gssapi.c.warnings	2004-07-21 16:39:06.000000000 +0200
c222874
+++ cyrus-sasl-2.1.22/plugins/gssapi.c	2008-09-10 14:20:59.000000000 +0200
c222874
@@ -190,7 +190,8 @@ sasl_gss_seterror_(const sasl_utils_t *u
c222874
     OM_uint32 msg_ctx;
c222874
     int ret;
c222874
     char *out = NULL;
c222874
-    size_t len, curlen = 0;
c222874
+    size_t len;
c222874
+    unsigned curlen = 0;
c222874
     const char prefix[] = "GSSAPI Error: ";
c222874
     
c222874
     len = sizeof(prefix);
c222874
diff -up cyrus-sasl-2.1.22/plugins/ldapdb.c.warnings cyrus-sasl-2.1.22/plugins/ldapdb.c
c222874
--- cyrus-sasl-2.1.22/plugins/ldapdb.c.warnings	2005-02-19 03:26:31.000000000 +0100
c222874
+++ cyrus-sasl-2.1.22/plugins/ldapdb.c	2008-09-10 14:52:33.000000000 +0200
c222874
@@ -21,6 +21,7 @@
c222874
 
c222874
 #include "plugin_common.h"
c222874
 
c222874
+#define LDAP_DEPRECATED 1
c222874
 #include <ldap.h>
c222874
 
c222874
 static char ldapdb[] = "ldapdb";
c222874
diff -up cyrus-sasl-2.1.22/saslauthd/lak.c.warnings cyrus-sasl-2.1.22/saslauthd/lak.c
c222874
--- cyrus-sasl-2.1.22/saslauthd/lak.c.warnings	2005-05-15 07:49:51.000000000 +0200
c222874
+++ cyrus-sasl-2.1.22/saslauthd/lak.c	2008-09-10 14:52:51.000000000 +0200
c222874
@@ -55,6 +55,7 @@
c222874
 #include <openssl/des.h>
c222874
 #endif
c222874
 
c222874
+#define LDAP_DEPRECATED 1
c222874
 #include <ldap.h>
c222874
 #include <lber.h>
c222874
 #include <sasl.h>
c222874
diff -up cyrus-sasl-2.1.22/saslauthd/auth_httpform.c.warnings cyrus-sasl-2.1.22/saslauthd/auth_httpform.c
c222874
--- cyrus-sasl-2.1.22/saslauthd/auth_httpform.c.warnings	2006-04-19 21:51:13.000000000 +0200
c222874
+++ cyrus-sasl-2.1.22/saslauthd/auth_httpform.c	2008-09-10 14:45:57.000000000 +0200
c222874
@@ -552,7 +552,7 @@ auth_httpform (
c222874
               "Content-Type: application/x-www-form-urlencoded" CRLF
c222874
               "Content-Length: %d" TWO_CRLF
c222874
               "%s",
c222874
-              r_uri, r_host, r_port, strlen(escreq), escreq);
c222874
+              r_uri, r_host, r_port, (int)strlen(escreq), escreq);
c222874
 
c222874
     if (flags & VERBOSE) {
c222874
         syslog(LOG_DEBUG, "auth_httpform: sending %s %s %s",
c222874
diff -up cyrus-sasl-2.1.22/saslauthd/auth_shadow.c.warnings cyrus-sasl-2.1.22/saslauthd/auth_shadow.c
c222874
--- cyrus-sasl-2.1.22/saslauthd/auth_shadow.c.warnings	2006-04-19 21:36:36.000000000 +0200
c222874
+++ cyrus-sasl-2.1.22/saslauthd/auth_shadow.c	2008-09-10 14:47:47.000000000 +0200
c222874
@@ -63,6 +63,10 @@
c222874
 #  include <shadow.h>
c222874
 # endif /* ! HAVE_GETUSERPW */
c222874
 
c222874
+# ifdef HAVE_CRYPT_H
c222874
+#  include <crypt.h>
c222874
+# endif
c222874
+
c222874
 # include "auth_shadow.h"
c222874
 # include "globals.h"
c222874
 /* END PUBLIC DEPENDENCIES */