]> git.pld-linux.org Git - packages/pidgin.git/commitdiff
- kill invalid va_list usage
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 19 Dec 2005 20:54:43 +0000 (20:54 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    gaim-va.patch -> 1.1

gaim-va.patch [new file with mode: 0644]

diff --git a/gaim-va.patch b/gaim-va.patch
new file mode 100644 (file)
index 0000000..6729bd4
--- /dev/null
@@ -0,0 +1,56 @@
+--- gaim-2.0.0beta1/src/account.c.orig 2005-12-08 22:50:49.000000000 +0100
++++ gaim-2.0.0beta1/src/account.c      2005-12-19 20:48:30.000000000 +0100
+@@ -1384,15 +1384,12 @@
+       const gchar *id;
+       gpointer data;
+-      if (args != NULL)
+-      {
+               while ((id = va_arg(args, const char *)) != NULL)
+               {
+                       attrs = g_list_append(attrs, (char *)id);
+                       data = va_arg(args, void *);
+                       attrs = g_list_append(attrs, data);
+               }
+-      }
+       gaim_account_set_status_list(account, status_id, active, attrs);
+       g_list_free(attrs);
+ }
+--- gaim-2.0.0beta1/plugins/perl/common/Account.xs.orig        2005-12-06 00:54:34.000000000 +0100
++++ gaim-2.0.0beta1/plugins/perl/common/Account.xs     2005-12-19 20:48:00.000000000 +0100
+@@ -89,7 +89,7 @@
+       const char *status_id
+       gboolean active
+ CODE:
+-      gaim_account_set_status(account, status_id, active);
++      gaim_account_set_status(account, status_id, active, NULL);
+ void 
+--- gaim-2.0.0beta1/src/status.c.orig  2005-12-09 14:16:09.000000000 +0100
++++ gaim-2.0.0beta1/src/status.c       2005-12-19 21:13:22.000000000 +0100
+@@ -699,7 +699,7 @@
+ void
+ gaim_status_set_active(GaimStatus *status, gboolean active)
+ {
+-      gaim_status_set_active_with_attrs(status, active, NULL);
++      gaim_status_set_active_with_attrs_list(status, active, NULL);
+ }
+ /*
+@@ -715,15 +715,12 @@
+       const gchar *id;
+       gpointer data;
+-      if (args != NULL)
+-      {
+               while ((id = va_arg(args, const char *)) != NULL)
+               {
+                       attrs = g_list_append(attrs, (char *)id);
+                       data = va_arg(args, void *);
+                       attrs = g_list_append(attrs, data);
+               }
+-      }
+       gaim_status_set_active_with_attrs_list(status, active, attrs);
+       g_list_free(attrs);
+ }
This page took 0.154842 seconds and 4 git commands to generate.