# HG changeset patch # User Mikael Berthe # Date 1133561880 -3600 # Node ID 95d6297a96540ebb3b4827e767c7b1d6349c60ed # Parent b0f1b127bfb6664ccdfdac775242e3539c57ae4b Cosmetic changes diff -r b0f1b127bfb6 -r 95d6297a9654 mcabber/src/roster.c --- 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; }