summaryrefslogtreecommitdiff
path: root/extra/cyrus-sasl/cyrus-sasl-2.1.23-authd-fix.patch
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-08-07 23:14:33 +0000
committerroot <root@rshg054.dnsready.net>2011-08-07 23:14:33 +0000
commit0f9e4ba23bb6296d8bb8010f70d868fd08db9c54 (patch)
treeddd4394d1c62e9831f05238ff56a70da01f6c5c0 /extra/cyrus-sasl/cyrus-sasl-2.1.23-authd-fix.patch
parent7f2d7bd11daf0c654d4147cb91f9913bc587c276 (diff)
Sun Aug 7 23:14:33 UTC 2011
Diffstat (limited to 'extra/cyrus-sasl/cyrus-sasl-2.1.23-authd-fix.patch')
-rw-r--r--extra/cyrus-sasl/cyrus-sasl-2.1.23-authd-fix.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/extra/cyrus-sasl/cyrus-sasl-2.1.23-authd-fix.patch b/extra/cyrus-sasl/cyrus-sasl-2.1.23-authd-fix.patch
new file mode 100644
index 000000000..f5f372d17
--- /dev/null
+++ b/extra/cyrus-sasl/cyrus-sasl-2.1.23-authd-fix.patch
@@ -0,0 +1,28 @@
+fix warnings:
+
+auth_sasldb.c: In function ‘auth_sasldb’:
+auth_sasldb.c:144: warning: implicit declaration of function ‘gethostname’
+
+auth_sasldb.c:153: warning: passing argument 8 of ‘_sasldb_getdata’ from incompatible pointer type
+../sasldb/sasldb.h:60: note: expected ‘size_t *’ but argument is of type ‘int *’
+
+--- saslauthd/auth_sasldb.c
++++ saslauthd/auth_sasldb.c
+@@ -41,6 +41,7 @@
+ #include <string.h>
+ #include <stdlib.h>
+ #include <pwd.h>
++#include <unistd.h>
+ /* END PUBLIC DEPENDENCIES */
+
+ #define RETURN(x) return strdup(x)
+@@ -131,7 +132,8 @@
+ /* VARIABLES */
+ char pw[1024]; /* pointer to passwd file entry */
+ sasl_utils_t utils;
+- int ret, outsize;
++ int ret;
++ size_t outsize;
+ const char *use_realm;
+ char realm_buf[MAXHOSTNAMELEN];
+ /* END VARIABLES */