summaryrefslogtreecommitdiff
path: root/chat/gg2/patches/patch-ae
blob: cd0edb9cc5da73ba59f6ef5aba446caf28018558 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
$NetBSD: patch-ae,v 1.1 2005/01/17 20:15:28 kristerw Exp $

--- src/plugins/gadu_gadu/gadu_gadu_plugin.c.orig	Mon Jan 17 20:50:35 2005
+++ src/plugins/gadu_gadu/gadu_gadu_plugin.c	Mon Jan 17 20:52:52 2005
@@ -422,6 +422,9 @@
 	uint32_t *uins;
 	GGaduMsg *msg = NULL;
 	gint i, j;
+	GSList *list;
+	GSList *us;
+	gchar *recipients_line;
 
 	/* w przypadku bledu/utraty polaczenia postap tak jak w przypadku disconnect */
 	if (!session || !(e = gg_watch_fd(session)) || (condition & G_IO_ERR) ||
@@ -585,9 +588,9 @@
 
 		}
 
-		GSList *list = ggadu_repo_get_as_slist("gadu-gadu", REPO_VALUE_CONTACT);
-		GSList *us = list;
-		gchar *recipients_line = NULL;
+		list = ggadu_repo_get_as_slist("gadu-gadu", REPO_VALUE_CONTACT);
+		us = list;
+		recipients_line = NULL;
 
 		while (us)
 		{
@@ -696,6 +699,7 @@
 
 				if (k)
 				{
+					gchar *status;
 					ip_addr.s_addr = n->remote_ip;
 					if (inet_ntoa(ip_addr) && (ggadu_strcasecmp(inet_ntoa(ip_addr), "0.0.0.0")))
 					{
@@ -714,7 +718,7 @@
 
 					/* Zapiszmy sobie zmiane opisu do pliku historii */
 
-					gchar *status = NULL;
+					status = NULL;
 					if ((k->status == GG_STATUS_AVAIL) || (k->status == GG_STATUS_AVAIL_DESCR))
 						status = g_strdup_printf("avail");
 					else if ((k->status == GG_STATUS_BUSY) || (k->status == GG_STATUS_BUSY_DESCR))