Mercurial > pidgin
diff src/aim.c @ 2397:520257562955
[gaim-migrate @ 2410]
changing aim_users to GSList. this works better for me since in gaim-core i had them as a GSList. besides, it saves memory.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Sun, 30 Sep 2001 19:58:48 +0000 |
| parents | cacaf7ace3a5 |
| children | 61b816a7b467 |
line wrap: on
line diff
--- a/src/aim.c Sun Sep 30 19:48:44 2001 +0000 +++ b/src/aim.c Sun Sep 30 19:58:48 2001 +0000 @@ -181,7 +181,7 @@ static GList *combo_user_names() { - GList *usr = aim_users; + GSList *usr = aim_users; GList *tmp = NULL; struct aim_user *u; @@ -423,10 +423,10 @@ u = g_new0(struct aim_user, 1); g_snprintf(u->username, sizeof(u->username), "%s", name); u->protocol = DEFAULT_PROTO; - aim_users = g_list_prepend(aim_users, u); + aim_users = g_slist_prepend(aim_users, u); } else { /* user already exists */ - aim_users = g_list_remove(aim_users, u); - aim_users = g_list_prepend(aim_users, u); + aim_users = g_slist_remove(aim_users, u); + aim_users = g_slist_prepend(aim_users, u); } save_prefs(); }
