changeset 17454:29137f15743d

Minor changes: 1. Remove some C99 struct syntax. 2. Remove some gpointer casts. 3. Minor whitespace fix.
author Richard Laager <rlaager@wiktel.com>
date Wed, 30 May 2007 01:36:30 +0000
parents afee8b840d91
children 2f8bfe3f76f0
files libpurple/protocols/null/nullprpl.c
diffstat 1 files changed, 7 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/null/nullprpl.c	Wed May 30 01:21:36 2007 +0000
+++ b/libpurple/protocols/null/nullprpl.c	Wed May 30 01:36:30 2007 +0000
@@ -115,11 +115,9 @@
 
 static void foreach_nullprpl_gc(GcFunc fn, PurpleConnection *from,
                                 gpointer userdata) {
-  GcFuncData gcfdata = { .fn = fn,
-                         .from = from,
-                         .userdata = userdata };
+  GcFuncData gcfdata = { fn, from, userdata };
   g_list_foreach(purple_connections_get_all(), call_if_nullprpl,
-                 (gpointer)&gcfdata);
+                 &gcfdata);
 }
 
 
@@ -147,12 +145,12 @@
 static void foreach_gc_in_chat(ChatFunc fn, PurpleConnection *from,
                                int id, gpointer userdata) {
   PurpleConversation *conv = purple_find_chat(from, id);
-  ChatFuncData cfdata = { .fn = fn,
-                          .from_chat = purple_conversation_get_chat_data(conv),
-                          .userdata = userdata };
+  ChatFuncData cfdata = { fn,
+                          purple_conversation_get_chat_data(conv),
+                          userdata };
 
   g_list_foreach(purple_connections_get_all(), call_chat_func,
-                 (gpointer)&cfdata);
+                 &cfdata);
 }
 
 
@@ -1065,7 +1063,7 @@
       128,                             /* max_height */
       10000,                           /* max_filesize */
       PURPLE_ICON_SCALE_DISPLAY,       /* scale_rules */
-    },
+  },
   nullprpl_list_icon,                  /* list_icon */
   nullprpl_list_emblem,                /* list_emblem */
   nullprpl_status_text,                /* status_text */