# HG changeset patch # User Richard Laager # Date 1180488990 0 # Node ID 29137f15743d2ac65c9d5350feb4fb34347501a4 # Parent afee8b840d911061ff8e81a8dc4deca8055fd6aa Minor changes: 1. Remove some C99 struct syntax. 2. Remove some gpointer casts. 3. Minor whitespace fix. diff -r afee8b840d91 -r 29137f15743d libpurple/protocols/null/nullprpl.c --- 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 */