Get rid of two really minor warnings

Mon, 23 Apr 2007 06:21:38 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Mon, 23 Apr 2007 06:21:38 +0000
changeset 16395
f6df845a2956
parent 16394
b619366f62e1
child 16396
2217b2765e58

Get rid of two really minor warnings

libpurple/protocols/jabber/auth.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/jabber/auth.c	Mon Apr 23 03:02:37 2007 +0000
+++ b/libpurple/protocols/jabber/auth.c	Mon Apr 23 06:21:38 2007 +0000
@@ -831,7 +831,7 @@
 {
 	const char *ns = xmlnode_get_namespace(packet);
 #ifdef HAVE_CYRUS_SASL
-	const int *x;
+	const void *x;
 #endif
 
 	if(!ns || strcmp(ns, "urn:ietf:params:xml:ns:xmpp-sasl")) {
@@ -865,9 +865,9 @@
 	}
 	/* If we've negotiated a security layer, we need to enable it */
 	sasl_getprop(js->sasl, SASL_SSF, &x);
-	if (*x > 0) {
+	if (*(int *)x > 0) {
 		sasl_getprop(js->sasl, SASL_MAXOUTBUF, &x);
-		js->sasl_maxbuf = *x;
+		js->sasl_maxbuf = *(int *)x;
 	}
 #endif
 

mercurial