diff src/proxy.c @ 11143:5c56223fa24f

[gaim-migrate @ 13207] I think this gets rid of the last of the gcc4 -Wall warnings in the core committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 22 Jul 2005 02:06:15 +0000
parents 50224ac8184d
children 8dca96cbcd64
line wrap: on
line diff
--- a/src/proxy.c	Fri Jul 22 01:49:19 2005 +0000
+++ b/src/proxy.c	Fri Jul 22 02:06:15 2005 +0000
@@ -1083,9 +1083,9 @@
 		char *t1, *t2;
 		t1 = g_strdup_printf("%s:%s",
 				     gaim_proxy_info_get_username(phb->gpi),
-				     gaim_proxy_info_get_password(phb->gpi) ? 
+				     gaim_proxy_info_get_password(phb->gpi) ?
 				     gaim_proxy_info_get_password(phb->gpi) : "");
-		t2 = gaim_base64_encode(t1, strlen(t1));
+		t2 = gaim_base64_encode((const guchar *)t1, strlen(t1));
 		g_free(t1);
 		g_return_if_fail(request_len < sizeof(request));
 		request_len += g_snprintf(request + request_len,
@@ -1418,7 +1418,7 @@
 	unsigned char Kxoropad[65];
 	int pwlen;
 	char * pwinput;
-	char md5buf[16];
+	guint8 md5buf[16];
 
 	cipher = gaim_ciphers_find_cipher("md5");
 	ctx = gaim_cipher_context_new(cipher, NULL);
@@ -1426,7 +1426,7 @@
 	pwinput=(char *)passwd;
 	pwlen=strlen(passwd);
 	if (pwlen>64) {
-		gaim_cipher_context_append(ctx, passwd, strlen(passwd));
+		gaim_cipher_context_append(ctx, (const guint8 *)passwd, strlen(passwd));
 		gaim_cipher_context_digest(ctx, sizeof(md5buf), md5buf, NULL);
 		pwinput=(char *)md5buf;
 		pwlen=16;