Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
13105:e347b2217b1b | 13106:a0a4b44239e8 |
---|---|
2649 *sw = emblems[1]; | 2649 *sw = emblems[1]; |
2650 *nw = emblems[2]; | 2650 *nw = emblems[2]; |
2651 *ne = emblems[3]; | 2651 *ne = emblems[3]; |
2652 } | 2652 } |
2653 | 2653 |
2654 static char *yahoo_get_status_string(enum yahoo_status a) | 2654 static const char *yahoo_get_status_string(enum yahoo_status a) |
2655 { | 2655 { |
2656 switch (a) { | 2656 switch (a) { |
2657 case YAHOO_STATUS_BRB: | 2657 case YAHOO_STATUS_BRB: |
2658 return _("Be Right Back"); | 2658 return _("Be Right Back"); |
2659 case YAHOO_STATUS_BUSY: | 2659 case YAHOO_STATUS_BUSY: |
2786 } | 2786 } |
2787 | 2787 |
2788 void yahoo_tooltip_text(GaimBuddy *b, GString *str, gboolean full) | 2788 void yahoo_tooltip_text(GaimBuddy *b, GString *str, gboolean full) |
2789 { | 2789 { |
2790 YahooFriend *f; | 2790 YahooFriend *f; |
2791 char *escaped, *status = NULL, *presence = NULL; | 2791 char *escaped; |
2792 char *status = NULL; | |
2793 const char *presence = NULL; | |
2792 | 2794 |
2793 f = yahoo_friend_find(b->account->gc, b->name); | 2795 f = yahoo_friend_find(b->account->gc, b->name); |
2794 if (!f) | 2796 if (!f) |
2795 status = g_strdup_printf("\n%s", _("Not on server list")); | 2797 status = g_strdup_printf("\n%s", _("Not on server list")); |
2796 else { | 2798 else { |