diff src/protocols/yahoo/yahoo.c @ 4729:751c37a940dd

[gaim-migrate @ 5042] compile cleanups, and let those silly gtk2.0 people compile again. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Wed, 12 Mar 2003 21:43:39 +0000
parents b9e7ccf21f9c
children 9d3b7b106def
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo.c	Wed Mar 12 16:51:23 2003 +0000
+++ b/src/protocols/yahoo/yahoo.c	Wed Mar 12 21:43:39 2003 +0000
@@ -1069,24 +1069,26 @@
 {
 	struct yahoo_data *yd = (struct yahoo_data*)b->account->gc->proto_data;
 	if (b->uc & UC_UNAVAILABLE && b->uc >> 2 != YAHOO_STATUS_IDLE) {
-	       	if ((b->uc >> 2) != YAHOO_STATUS_CUSTOM)
+		if ((b->uc >> 2) != YAHOO_STATUS_CUSTOM)
 			return yahoo_get_status_string(b->uc >> 2);
 		else
 			return g_hash_table_lookup(yd->hash, b->name);
 	}
+	return NULL;
 }
 
 static char *yahoo_tooltip_text(struct buddy *b)
 {
 	struct yahoo_data *yd = (struct yahoo_data*)b->account->gc->proto_data;
 	if (b->uc & UC_UNAVAILABLE && b->uc >> 2 != YAHOO_STATUS_IDLE) {
-	       	if ((b->uc >> 2) != YAHOO_STATUS_CUSTOM)
+		if ((b->uc >> 2) != YAHOO_STATUS_CUSTOM)
 			return g_strdup(yahoo_get_status_string(b->uc >> 2));
 		else
 			return g_strdup(g_hash_table_lookup(yd->hash, b->name));
 	}
-} 
-    
+	return NULL;
+}
+
 static GList *yahoo_buddy_menu(struct gaim_connection *gc, char *who)
 {
 	GList *m = NULL;
@@ -1094,7 +1096,6 @@
 	struct yahoo_data *yd = (struct yahoo_data *)gc->proto_data;
 	struct buddy *b = gaim_find_buddy(gc->account, who); /* this should never be null. if it is,
 						  segfault and get the bug report. */
-	static char buf[1024];
 	static char buf2[1024];
 
 	if (b->uc | YAHOO_STATUS_GAME) {