yahoo.c uses C++ declarations
Philip S Tellis <[email protected]> Wed, 18 Feb 2004 18:36:40 +0530 (IST)
| Newsgroups | gmane.network.everybuddy.user |
|---|---|
| Message-ID | <[email protected]> |
this patch allows yahoo.c to be built with a C compiler. -- Delta: We're Amtrak with wings. -- David Letterman _______________________________________________ Everybuddy mailing list [email protected] http://lists.spine.cx/listinfo/everybuddy
yahoo.c.diff
(text/plain, 913 B)
Index: yahoo.c
===================================================================
--- yahoo.c (revision 269)
+++ yahoo.c (working copy)
@@ -97,11 +97,14 @@
static void login(eb_local_account * la)
{
+ eb_ylad *lad;
+ int istate;
+
la->connected = 1;
la->ready = 0;
eb_local_account_update(la);
- eb_ylad * lad = GET_LAD(la);
+ lad = GET_LAD(la);
if (lad->id != -1)
{
yahoo_close(lad->id);
@@ -110,7 +113,7 @@
lad->id = yahoo_init(la->handle, eb_get_value(la->config_key, "password"));
lad->invisible = (eb_get_value(la->config_key, "yahoo/login_invisible")[0] == '1');
- int istate = (lad->invisible) ? (YAHOO_STATUS_INVISIBLE) : (YAHOO_STATUS_AVAILABLE);
+ istate = (lad->invisible) ? (YAHOO_STATUS_INVISIBLE) : (YAHOO_STATUS_AVAILABLE);
yahoo_login(lad->id, istate);
set_current_state(la, (lad->invisible) ? "Invisible" : "Online");