Mercurial > pidgin
diff libgaim/protocols/oscar/flap_connection.c @ 14348:80b05108652c
[gaim-migrate @ 17050]
Use GSList in a few places instead of GList, and use g_list_prepend
and then g_list_reverse in a few places instead of g_list_append
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 26 Aug 2006 19:12:05 +0000 |
parents | baff095b146c |
children | 92eb7a040663 |
line wrap: on
line diff
--- a/libgaim/protocols/oscar/flap_connection.c Sat Aug 26 17:28:30 2006 +0000 +++ b/libgaim/protocols/oscar/flap_connection.c Sat Aug 26 19:12:05 2006 +0000 @@ -124,7 +124,7 @@ conn->subtype = -1; conn->type = type; - od->oscar_connections = g_list_prepend(od->oscar_connections, conn); + od->oscar_connections = g_slist_prepend(od->oscar_connections, conn); return conn; } @@ -220,10 +220,10 @@ if (conn->type == SNAC_FAMILY_CHAT) flap_connection_destroy_chat(od, conn); - g_list_free(conn->groups); + g_slist_free(conn->groups); flap_connection_destroy_rates(conn->rates); - od->oscar_connections = g_list_remove(od->oscar_connections, conn); + od->oscar_connections = g_slist_remove(od->oscar_connections, conn); account = gaim_connection_get_account(od->gc); @@ -351,12 +351,12 @@ FlapConnection * flap_connection_findbygroup(OscarData *od, guint16 group) { - GList *cur; + GSList *cur; for (cur = od->oscar_connections; cur != NULL; cur = cur->next) { FlapConnection *conn; - GList *l; + GSList *l; conn = cur->data; @@ -385,7 +385,7 @@ FlapConnection * flap_connection_getbytype(OscarData *od, int type) { - GList *cur; + GSList *cur; for (cur = od->oscar_connections; cur != NULL; cur = cur->next) { @@ -401,7 +401,7 @@ FlapConnection * flap_connection_getbytype_all(OscarData *od, int type) { - GList *cur; + GSList *cur; for (cur = od->oscar_connections; cur; cur = cur->next) {