Mercurial > hg
changeset 564:95d6297a9654
Cosmetic changes
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Fri, 02 Dec 2005 23:18:00 +0100 |
parents | b0f1b127bfb6 |
children | 89c347b3e4c1 |
files | mcabber/src/roster.c |
diffstat | 1 files changed, 10 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/src/roster.c Fri Dec 02 23:12:21 2005 +0100 +++ b/mcabber/src/roster.c Fri Dec 02 23:18:00 2005 +0100 @@ -282,7 +282,7 @@ roster_usr->list = slist; // (my_group SList element) // #4 Insert node (sorted) my_group->list = g_slist_insert_sorted(my_group->list, roster_usr, - (GCompareFunc)&roster_compare_name); + (GCompareFunc)&roster_compare_name); return roster_find(jid, jidsearch, type); } @@ -1069,15 +1069,19 @@ { GSList *unread, *next_unread; - if (!unread_list) return NULL; + if (!unread_list) + return NULL; + // First unread message - if (!rosterdata) return unread_list->data; + if (!rosterdata) + return unread_list->data; unread = g_slist_find(unread_list, rosterdata); - if (!unread) return unread_list->data; + if (!unread) + return unread_list->data; next_unread = g_slist_next(unread); - if (next_unread) return next_unread->data; - + if (next_unread) + return next_unread->data; return unread_list->data; }