[evolution/express-offline-mail-guesser] Fix compiler warnings
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/express-offline-mail-guesser] Fix compiler warnings
- Date: Wed, 17 Mar 2010 21:57:02 +0000 (UTC)
commit fd3435941fb1f4e220b96f2a945ce843cdc91cd0
Author: Federico Mena Quintero <federico novell com>
Date: Wed Mar 17 12:47:57 2010 -0600
Fix compiler warnings
Oh, yes, I hate xmlChar.
Signed-off-by: Federico Mena Quintero <federico novell com>
capplet/settings/mail-guess-servers.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/capplet/settings/mail-guess-servers.c b/capplet/settings/mail-guess-servers.c
index c3d0d3c..f3d47f1 100644
--- a/capplet/settings/mail-guess-servers.c
+++ b/capplet/settings/mail-guess-servers.c
@@ -51,10 +51,10 @@ xml_to_gchar (xmlChar *xml, EmailProvider *provider)
char *tmp;
char *repl = NULL, *sec_part;
- tmp = xml ? strstr(xml, "\%EMAIL") : NULL;
+ tmp = xml ? strstr((char *) xml, "\%EMAIL") : NULL;
if (!tmp) {
- gxml = xml ? g_strdup(xml) : NULL ;
+ gxml = xml ? g_strdup((char *) xml) : NULL ;
} else {
decodepart:
*tmp = 0;
@@ -116,7 +116,7 @@ handle_incoming (xmlNodePtr head, EmailProvider *provider)
{
xmlNodePtr node = head->children;
- provider->recv_type = xml_to_gchar(xmlGetProp(head, "type"), provider);
+ provider->recv_type = xml_to_gchar(xmlGetProp(head, (xmlChar *) "type"), provider);
while (node) {
if (strcmp ((gchar *)node->name, "hostname") == 0) {
@@ -140,7 +140,7 @@ handle_outgoing (xmlNodePtr head, EmailProvider *provider)
{
xmlNodePtr node = head->children;
- provider->send_type = xml_to_gchar(xmlGetProp(head, "type"), provider);
+ provider->send_type = xml_to_gchar(xmlGetProp(head, (xmlChar *) "type"), provider);
while (node) {
if (strcmp ((gchar *)node->name, "hostname") == 0) {
@@ -230,7 +230,6 @@ guess_when_online (EmailProvider *provider)
const char *cafile = NULL;
char *url;
SoupURI *proxy = NULL, *parsed;
- int opt;
SoupMessage *msg;
SoupSession *session;
@@ -274,7 +273,7 @@ guess_when_offline (EmailProvider *provider)
{
char *filename;
char *contents;
- gssize length;
+ gsize length;
gboolean success;
if (!provider->domain || provider->domain[0] == 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]