# HG changeset patch # User Christian Hammond # Date 1065246339 0 # Node ID f189f8ccaa9819e65bd5e562419db5b42f3340fd # Parent f2c8cca8baeab7360c2f49bd288f1ccdee7062a2 [gaim-migrate @ 7705] Warnings are bad, mkay? committer: Tailor Script diff -r f2c8cca8baea -r f189f8ccaa98 src/protocols/yahoo/yahoo.c --- a/src/protocols/yahoo/yahoo.c Fri Oct 03 23:20:02 2003 +0000 +++ b/src/protocols/yahoo/yahoo.c Sat Oct 04 05:45:39 2003 +0000 @@ -1701,6 +1701,7 @@ } } +#ifndef YAHOO_WEBMESSENGER static void yahoo_got_connected(gpointer data, gint source, GaimInputCondition cond) { GaimConnection *gc = data; @@ -1729,6 +1730,7 @@ gc->inpa = gaim_input_add(yd->fd, GAIM_INPUT_READ, yahoo_pending, gc); } +#endif #ifdef YAHOO_WEBMESSENGER static void yahoo_got_web_connected(gpointer data, gint source, GaimInputCondition cond) @@ -1834,7 +1836,8 @@ static GHashTable *yahoo_login_page_hash(const char *buf, size_t len) { GHashTable *hash = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); - const char *c = buf, *d; + const char *c = buf; + char *d; char name[64], value[64]; while ((c < (buf + len)) && (c = strstr(c, "proto_data; const char *sn = gaim_account_get_username(account); @@ -1897,7 +1901,7 @@ g_free(chal); url = g_string_append(url, md5); - g_hash_table_foreach(hash, yahoo_login_page_hash_iter, url); + g_hash_table_foreach(hash, (GHFunc)yahoo_login_page_hash_iter, url); url = g_string_append(url, "&.hash=1&.md5=1 HTTP/1.1\r\n" "Host: login.yahoo.com\r\n\r\n"); @@ -1933,7 +1937,8 @@ return; } #else - gaim_url_fetch(WEBMESSENGER_URL, TRUE, "Gaim/" VERSION, FALSE, yahoo_login_page_cb, gc); + gaim_url_fetch(WEBMESSENGER_URL, TRUE, "Gaim/" VERSION, FALSE, + yahoo_login_page_cb, gc); #endif }