diff libpurple/protocols/msn/slpcall.c @ 28094:a82fec14ac0f

Fix the warnings.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Fri, 31 Jul 2009 04:05:57 +0000
parents 4362f871369c
children 6c4e816873f7
line wrap: on
line diff
--- a/libpurple/protocols/msn/slpcall.c	Fri Jul 31 04:04:24 2009 +0000
+++ b/libpurple/protocols/msn/slpcall.c	Fri Jul 31 04:05:57 2009 +0000
@@ -208,7 +208,8 @@
 			GError *error;
 			gsize bytes_read, bytes_written;
 
-			body_str = g_convert(body, body_len / 2, "UTF16-LE", "UTF-8",
+			body_str = g_convert((const gchar *)body, body_len / 2,
+			                     "UTF16-LE", "UTF-8",
 			                     &bytes_read, &bytes_written, &error);
 			body_len -= bytes_read + 2;
 			body += bytes_read + 2;
@@ -228,7 +229,8 @@
 			}
 			g_free(body_str);
 
-			body_str = g_convert(body, body_len / 2, "UTF16-LE", "UTF-8",
+			body_str = g_convert((const gchar *)body, body_len / 2,
+			                     "UTF16-LE", "UTF-8",
 			                     &bytes_read, &bytes_written, &error);
 			if (!body_str)
 			{