5c0901a
diff -up cyrus-sasl-2.1.26/lib/server.c.warnings cyrus-sasl-2.1.26/lib/server.c
5c0901a
--- cyrus-sasl-2.1.26/lib/server.c.warnings	2012-10-12 16:05:48.000000000 +0200
5c0901a
+++ cyrus-sasl-2.1.26/lib/server.c	2012-12-20 17:49:39.620254792 +0100
5c0901a
@@ -650,7 +650,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 */
5c0901a
diff -up cyrus-sasl-2.1.26/plugins/gssapi.c.warnings cyrus-sasl-2.1.26/plugins/gssapi.c
5c0901a
--- cyrus-sasl-2.1.26/plugins/gssapi.c.warnings	2012-01-28 00:31:36.000000000 +0100
5c0901a
+++ cyrus-sasl-2.1.26/plugins/gssapi.c	2012-12-20 17:49:39.620254792 +0100
5c0901a
@@ -202,7 +202,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: ";
0f0cda2
 
0f0cda2
     if (!utils) return SASL_OK;
5c0901a
diff -up cyrus-sasl-2.1.26/plugins/ldapdb.c.warnings cyrus-sasl-2.1.26/plugins/ldapdb.c
5c0901a
--- cyrus-sasl-2.1.26/plugins/ldapdb.c.warnings	2012-01-28 00:31:36.000000000 +0100
5c0901a
+++ cyrus-sasl-2.1.26/plugins/ldapdb.c	2012-12-20 17:49:39.621254788 +0100
0f0cda2
@@ -22,6 +22,7 @@
c222874
 
c222874
 #include "plugin_common.h"
c222874
 
c222874
+#define LDAP_DEPRECATED 1
c222874
 #include <ldap.h>
c222874
 
c222874
 static char ldapdb[] = "ldapdb";
269f08f
diff -up cyrus-sasl-2.1.26/plugins/plugin_common.c.warnings cyrus-sasl-2.1.26/plugins/plugin_common.c
269f08f
--- cyrus-sasl-2.1.26/plugins/plugin_common.c.warnings	2013-09-03 14:40:35.181455452 +0200
269f08f
+++ cyrus-sasl-2.1.26/plugins/plugin_common.c	2013-09-03 14:40:38.320441024 +0200
269f08f
@@ -94,7 +94,7 @@ static void sockaddr_unmapped(
269f08f
     if (!IN6_IS_ADDR_V4MAPPED((&sin6->sin6_addr)))
269f08f
 	return;
269f08f
     sin4 = (struct sockaddr_in *)sa;
269f08f
-    addr = *(uint32_t *)&sin6->sin6_addr.s6_addr[12];
269f08f
+    addr = *(uint32_t *)&sin6->sin6_addr.s6_addr32[3];
269f08f
     port = sin6->sin6_port;
269f08f
     memset(sin4, 0, sizeof(struct sockaddr_in));
269f08f
     sin4->sin_addr.s_addr = addr;
5c0901a
diff -up cyrus-sasl-2.1.26/saslauthd/auth_httpform.c.warnings cyrus-sasl-2.1.26/saslauthd/auth_httpform.c
5c0901a
--- cyrus-sasl-2.1.26/saslauthd/auth_httpform.c.warnings	2012-10-12 16:05:48.000000000 +0200
269f08f
+++ cyrus-sasl-2.1.26/saslauthd/auth_httpform.c	2013-09-03 14:39:25.411776109 +0200
5c0901a
@@ -574,7 +574,7 @@ auth_httpform (
c222874
               "Content-Type: application/x-www-form-urlencoded" CRLF
c222874
               "Content-Length: %d" TWO_CRLF
c222874
               "%s",
5c0901a
-              r_uri, r_host, r_port, strlen(req), req);
5c0901a
+              r_uri, r_host, r_port, (int)strlen(req), req);
c222874
 
c222874
     if (flags & VERBOSE) {
c222874
         syslog(LOG_DEBUG, "auth_httpform: sending %s %s %s",
5c0901a
diff -up cyrus-sasl-2.1.26/saslauthd/auth_shadow.c.warnings cyrus-sasl-2.1.26/saslauthd/auth_shadow.c
5c0901a
--- cyrus-sasl-2.1.26/saslauthd/auth_shadow.c.warnings	2012-10-12 16:05:48.000000000 +0200
5c0901a
+++ cyrus-sasl-2.1.26/saslauthd/auth_shadow.c	2012-12-20 17:49:39.621254788 +0100
5c0901a
@@ -70,6 +70,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 */