[evolution-rss] compiler warnings cleanup



commit 9d675ead96e5d8bb23a5cbaddab3c3f3abfadb2f
Author: Lucian Langa <lucilanga gnome org>
Date:   Thu May 27 20:50:54 2010 +0300

    compiler warnings cleanup

 src/network-soup.c |    2 +-
 src/rss-image.c    |   13 +++++++------
 2 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/src/network-soup.c b/src/network-soup.c
index ab51252..6e2ee46 100644
--- a/src/network-soup.c
+++ b/src/network-soup.c
@@ -421,7 +421,7 @@ authenticate (SoupSession *session,
 
 	user = g_hash_table_lookup(rf->hruser, data);
 	pass = g_hash_table_lookup(rf->hrpass, data);
-	d("data:%s, user:%s, pass:%s\n", data, user, pass);
+	d("data:%s, user:%s, pass:%s\n", (gchar *)data, user, pass);
 
 	if (user && pass) {
 #if LIBSOUP_VERSION < 2003000
diff --git a/src/rss-image.c b/src/rss-image.c
index ddd2281..1f21f73 100644
--- a/src/rss-image.c
+++ b/src/rss-image.c
@@ -456,8 +456,9 @@ gchar *
 decode_image_cache_filename(gchar *name)
 {
 	gsize size;
-	gchar *tmp, *csum, *tname;
-	tmp = g_base64_decode(name+4, &size);
+	gchar *csum, *tname;
+	gchar *tmp;
+	tmp = (gchar *)g_base64_decode(name+4, &size);
 	csum = g_compute_checksum_for_string(G_CHECKSUM_SHA1,
 			tmp, -1);
 	g_free(tmp);
@@ -486,9 +487,9 @@ verify_image(gchar *uri, EMFormatHTML *format)
 	g_return_val_if_fail(uri != NULL, NULL);
 
 	if (strstr(uri, "img:"))
-		duri = g_base64_decode(uri+4, &size);
+		duri = (gchar *)g_base64_decode(uri+4, &size);
 
-	if (!g_file_test((gchar *)duri, G_FILE_TEST_EXISTS)) {
+	if (!g_file_test(duri, G_FILE_TEST_EXISTS)) {
 			camel_url_decode((gchar *)uri);
 			//FIXME lame method of extracting data cache path
 			//there must be a function in camel for getting data cache path
@@ -570,7 +571,7 @@ fetch_image_redraw(gchar *url, gchar *link, gpointer data)
 	g_return_val_if_fail(url != NULL, NULL);
 
 	if (strstr(url, "img:"))
-		tmpurl = g_base64_decode(url+4, &size);
+		tmpurl = (gchar *)g_base64_decode(url+4, &size);
 	else {
 
 	if (strstr(url, "://") == NULL) {
@@ -639,7 +640,7 @@ fetch_image_redraw(gchar *url, gchar *link, gpointer data)
 	}
 	g_free(cache_file);
 
-working:burl = g_base64_encode(tmpurl, strlen(tmpurl));
+working:burl = g_base64_encode((guchar *)tmpurl, strlen(tmpurl));
 	result = g_strdup_printf("img:%s", burl);
 	g_free(burl);
 error:	g_free(tmpurl);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]