diff src/protocols/yahoo/yahoo.c @ 13106:a0a4b44239e8

[gaim-migrate @ 15468] I was reading the gettext man page and it pointed out that it should be typed as const char *, but it's char * to avoid warnings in code predating ANSI C. So, for the heck of it, I changed added a cast in internal.h. As it turns out, there was a lot of code that relied on this. In the interest of type safety, I've fixed all the warnings. I feel this improved a number of function signatures (in terms of typing clarity). Flame me if you object. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 02 Feb 2006 21:34:43 +0000
parents 465c7e1dfc7b
children 33bef17125c2
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo.c	Thu Feb 02 20:03:17 2006 +0000
+++ b/src/protocols/yahoo/yahoo.c	Thu Feb 02 21:34:43 2006 +0000
@@ -2651,7 +2651,7 @@
 	*ne = emblems[3];
 }
 
-static char *yahoo_get_status_string(enum yahoo_status a)
+static const char *yahoo_get_status_string(enum yahoo_status a)
 {
 	switch (a) {
 	case YAHOO_STATUS_BRB:
@@ -2788,7 +2788,9 @@
 void yahoo_tooltip_text(GaimBuddy *b, GString *str, gboolean full)
 {
 	YahooFriend *f;
-	char *escaped, *status = NULL, *presence = NULL;
+	char *escaped;
+	char *status = NULL;
+	const char *presence = NULL;
 
 	f = yahoo_friend_find(b->account->gc, b->name);
 	if (!f)