diff mcabber/src/roster.c @ 1058:c0d44a9a99bc

Code cleanup Cosmetics. Mostly get rid of "jid" variables, as it is a structure pointer defined in libjabber/jabber.h.
author Mikael Berthe <mikael@lilotux.net>
date Thu, 30 Nov 2006 19:51:09 +0100
parents ebbde723614b
children 4e62941df777
line wrap: on
line diff
--- a/mcabber/src/roster.c	Tue Nov 28 07:14:59 2006 +0100
+++ b/mcabber/src/roster.c	Thu Nov 30 19:51:09 2006 +0100
@@ -264,7 +264,7 @@
 GSList *roster_find(const char *jidname, enum findwhat type, guint roster_type)
 {
   GSList *sl_roster_elt = groups;
-  GSList *res;
+  GSList *resource;
   roster sample;
   GCompareFunc comp;
 
@@ -290,8 +290,8 @@
       if ((type == namesearch) && !strcmp(jidname, roster_elt->name))
         return sl_roster_elt;
     }
-    res = g_slist_find_custom(roster_elt->list, &sample, comp);
-    if (res) return res;
+    resource = g_slist_find_custom(roster_elt->list, &sample, comp);
+    if (resource) return resource;
     sl_roster_elt = g_slist_next(sl_roster_elt);
   }
   return NULL;