pidgin/purple-plugin-pack

Parents 04fd46e3fd1e
Children cc3c895d2ffa
Clean up some 'ISO C90 forbids mixed declarations and code' warnings.
--- a/irc-more/irc-more.c Fri Dec 03 23:06:08 2010 -0500
+++ b/irc-more/irc-more.c Sat Dec 04 09:30:58 2010 -0500
@@ -73,6 +73,7 @@
irc_receiving_text(PurpleConnection *gc, const char **incoming, gpointer null)
{
char **splits;
+ PurpleAccount *account = NULL;
if (!incoming || !*incoming || !**incoming) /* oh the fun .. I can do this all day! */
return;
@@ -83,7 +84,7 @@
if(g_strv_length(splits) < 5)
return;
- PurpleAccount *account = purple_connection_get_account(gc);
+ account = purple_connection_get_account(gc);
char *str = g_ascii_strdown(splits[1], -1);
if (strcmp(str, "kick") == 0 && splits[2] && splits[3]) {
--- a/translate/translate.c Fri Dec 03 23:06:08 2010 -0500
+++ b/translate/translate.c Sat Dec 04 09:30:58 2010 -0500
@@ -785,8 +785,7 @@
static void
init_plugin(PurplePlugin *plugin)
{
- const gchar * const * languages;
- languages = g_get_language_names();
+ const gchar * const * languages = g_get_language_names();
const gchar *language;
guint i = 0;
PurpleKeyValuePair *pair;