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

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