changeset 11397:d530188f04b8

[gaim-migrate @ 13629] warning: ISO C90 forbids mixed declarations and code committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 31 Aug 2005 21:18:27 +0000
parents be776f9b1818
children 90290f579926
files src/protocols/gg/gg.c
diffstat 1 files changed, 9 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/gg/gg.c	Wed Aug 31 21:10:19 2005 +0000
+++ b/src/protocols/gg/gg.c	Wed Aug 31 21:18:27 2005 +0000
@@ -532,7 +532,7 @@
 
 	for (i = 0; users_tbl[i] != NULL; i++) {
 		gchar **data_tbl;
-		gchar *name, *show;
+		gchar *name, *show, *g;
 
 		if (strlen(users_tbl[i]) == 0)
 			continue;
@@ -550,7 +550,7 @@
 			continue;
 		}
 
-		gchar *g = g_strdup("Gadu-Gadu");
+		g = g_strdup("Gadu-Gadu");
 
 		if (strlen(data_tbl[5])) {
 			/* Hard limit to at most 50 groups */
@@ -993,6 +993,8 @@
 				continue;
 
 			for (bnode = cnode->child; bnode != NULL; bnode = bnode->next) {
+				gchar *newdata, *name, *show, *gname;
+
 				if (!GAIM_BLIST_NODE_IS_BUDDY(bnode))
 					continue;
 
@@ -1000,13 +1002,12 @@
 				if (buddy->account != account)
 					continue;
 
-				gchar *newdata;
 				/* GG Number */
-				gchar *name = buddy->name;
+				name = buddy->name;
 				/* GG Pseudo */
-				gchar *show = buddy->alias ? buddy->alias : buddy->name;
+				show = buddy->alias ? buddy->alias : buddy->name;
 				/* Group Name */
-				gchar *gname = group->name;
+				gname = group->name;
 
 				newdata = g_strdup_printf("%s;%s;%s;%s;%s;%s;%s;%s%s\r\n",
 						show, show, show, show, "", gname, name, "", "");
@@ -1858,7 +1859,7 @@
 	GaimStatusPrimitive prim;
 	GaimConnection *gc;
 	GGPInfo *info;
-	const char *status_id;
+	const char *status_id, *msg;
 	int new_status, new_status_descr;
 
 	prim = gaim_status_type_get_primitive(gaim_status_get_type(status));
@@ -1898,7 +1899,7 @@
 		gaim_debug_info("gg", "ggp_set_status: uknown status requested (status_id=%s)\n", status_id);
 	}
 
-	const char *msg = gaim_status_get_attr_string(status, "message");
+	msg = gaim_status_get_attr_string(status, "message");
 
 	if (msg == NULL) {
 		gaim_debug_info("gg", "ggp_set_status: msg == NULL\n");