Blame SOURCES/cyrus-sasl-2.1.26-warnings.patch

bfd35c
diff -up cyrus-sasl-2.1.26/lib/server.c.warnings cyrus-sasl-2.1.26/lib/server.c
bfd35c
--- cyrus-sasl-2.1.26/lib/server.c.warnings	2012-10-12 16:05:48.000000000 +0200
bfd35c
+++ cyrus-sasl-2.1.26/lib/server.c	2012-12-20 17:49:39.620254792 +0100
bfd35c
@@ -650,7 +650,7 @@ static int load_config(const sasl_callba
bfd35c
             goto done;
bfd35c
         }
bfd35c
 
bfd35c
-        snprintf(config_filename, len, "%.*s%c%s.conf", path_len, path_to_config, 
bfd35c
+        snprintf(config_filename, len, "%.*s%c%s.conf", (int)path_len, path_to_config, 
bfd35c
 	        HIER_DELIMITER, global_callbacks.appname);
bfd35c
 
bfd35c
         /* Ask the application if it's safe to use this file */
bfd35c
diff -up cyrus-sasl-2.1.26/plugins/gssapi.c.warnings cyrus-sasl-2.1.26/plugins/gssapi.c
bfd35c
--- cyrus-sasl-2.1.26/plugins/gssapi.c.warnings	2012-01-28 00:31:36.000000000 +0100
bfd35c
+++ cyrus-sasl-2.1.26/plugins/gssapi.c	2012-12-20 17:49:39.620254792 +0100
bfd35c
@@ -202,7 +202,8 @@ sasl_gss_seterror_(const sasl_utils_t *u
bfd35c
     OM_uint32 msg_ctx;
bfd35c
     int ret;
bfd35c
     char *out = NULL;
bfd35c
-    size_t len, curlen = 0;
bfd35c
+    size_t len;
bfd35c
+    unsigned curlen = 0;
bfd35c
     const char prefix[] = "GSSAPI Error: ";
bfd35c
 
bfd35c
     if (!utils) return SASL_OK;
bfd35c
diff -up cyrus-sasl-2.1.26/plugins/ldapdb.c.warnings cyrus-sasl-2.1.26/plugins/ldapdb.c
bfd35c
--- cyrus-sasl-2.1.26/plugins/ldapdb.c.warnings	2012-01-28 00:31:36.000000000 +0100
bfd35c
+++ cyrus-sasl-2.1.26/plugins/ldapdb.c	2012-12-20 17:49:39.621254788 +0100
bfd35c
@@ -22,6 +22,7 @@
bfd35c
 
bfd35c
 #include "plugin_common.h"
bfd35c
 
bfd35c
+#define LDAP_DEPRECATED 1
bfd35c
 #include <ldap.h>
bfd35c
 
bfd35c
 static char ldapdb[] = "ldapdb";
bfd35c
diff -up cyrus-sasl-2.1.26/plugins/plugin_common.c.warnings cyrus-sasl-2.1.26/plugins/plugin_common.c
bfd35c
--- cyrus-sasl-2.1.26/plugins/plugin_common.c.warnings	2013-09-03 14:40:35.181455452 +0200
bfd35c
+++ cyrus-sasl-2.1.26/plugins/plugin_common.c	2013-09-03 14:40:38.320441024 +0200
bfd35c
@@ -94,7 +94,7 @@ static void sockaddr_unmapped(
bfd35c
     if (!IN6_IS_ADDR_V4MAPPED((&sin6->sin6_addr)))
bfd35c
 	return;
bfd35c
     sin4 = (struct sockaddr_in *)sa;
bfd35c
-    addr = *(uint32_t *)&sin6->sin6_addr.s6_addr[12];
bfd35c
+    addr = *(uint32_t *)&sin6->sin6_addr.s6_addr32[3];
bfd35c
     port = sin6->sin6_port;
bfd35c
     memset(sin4, 0, sizeof(struct sockaddr_in));
bfd35c
     sin4->sin_addr.s_addr = addr;
bfd35c
diff -up cyrus-sasl-2.1.26/saslauthd/auth_httpform.c.warnings cyrus-sasl-2.1.26/saslauthd/auth_httpform.c
bfd35c
--- cyrus-sasl-2.1.26/saslauthd/auth_httpform.c.warnings	2012-10-12 16:05:48.000000000 +0200
bfd35c
+++ cyrus-sasl-2.1.26/saslauthd/auth_httpform.c	2013-09-03 14:39:25.411776109 +0200
bfd35c
@@ -574,7 +574,7 @@ auth_httpform (
bfd35c
               "Content-Type: application/x-www-form-urlencoded" CRLF
bfd35c
               "Content-Length: %d" TWO_CRLF
bfd35c
               "%s",
bfd35c
-              r_uri, r_host, r_port, strlen(req), req);
bfd35c
+              r_uri, r_host, r_port, (int)strlen(req), req);
bfd35c
 
bfd35c
     if (flags & VERBOSE) {
bfd35c
         syslog(LOG_DEBUG, "auth_httpform: sending %s %s %s",
bfd35c
diff -up cyrus-sasl-2.1.26/saslauthd/auth_shadow.c.warnings cyrus-sasl-2.1.26/saslauthd/auth_shadow.c
bfd35c
--- cyrus-sasl-2.1.26/saslauthd/auth_shadow.c.warnings	2012-10-12 16:05:48.000000000 +0200
bfd35c
+++ cyrus-sasl-2.1.26/saslauthd/auth_shadow.c	2012-12-20 17:49:39.621254788 +0100
bfd35c
@@ -70,6 +70,10 @@
bfd35c
 #  include <shadow.h>
bfd35c
 # endif /* ! HAVE_GETUSERPW */
bfd35c
 
bfd35c
+# ifdef HAVE_CRYPT_H
bfd35c
+#  include <crypt.h>
bfd35c
+# endif
bfd35c
+
bfd35c
 # include "auth_shadow.h"
bfd35c
 # include "globals.h"
bfd35c
 /* END PUBLIC DEPENDENCIES */