Mercurial > hg
changeset 562:7fc678ac3bc6
Cosmetic changes
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Fri, 02 Dec 2005 23:10:34 +0100 |
parents | a2eec8294093 |
children | b0f1b127bfb6 |
files | mcabber/src/jabglue.c mcabber/src/roster.c |
diffstat | 2 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/src/jabglue.c Fri Dec 02 00:16:49 2005 +0100 +++ b/mcabber/src/jabglue.c Fri Dec 02 23:10:34 2005 +0100 @@ -941,7 +941,8 @@ if (!strcmp(ns, NS_ROSTER)) { gotroster(x); } else if (!strcmp(ns, NS_AGENTS)) { - for (y = xmlnode_get_tag(x, "agent"); y; y = xmlnode_get_nextsibling(y)) { + y = xmlnode_get_tag(x, "agent"); + for (; y; y = xmlnode_get_nextsibling(y)) { const char *alias = xmlnode_get_attrib(y, "jid"); if (alias) { @@ -958,7 +959,7 @@ if (atype == transport) { char *cleanjid = jidtodisp(alias); roster_add_user(cleanjid, NULL, JABBER_AGENT_GROUP, - ROSTER_TYPE_AGENT); + ROSTER_TYPE_AGENT); g_free(cleanjid); } if (alias && name && desc) {
--- a/mcabber/src/roster.c Fri Dec 02 00:16:49 2005 +0100 +++ b/mcabber/src/roster.c Fri Dec 02 23:10:34 2005 +0100 @@ -243,7 +243,7 @@ // Returns a pointer to the new user, or existing user with that name GSList *roster_add_user(const char *jid, const char *name, const char *group, - guint type) + guint type) { roster *roster_usr; roster *my_group; @@ -711,7 +711,7 @@ // Add the buddy to its new group; actually we "clone" this buddy... sl_clone = roster_add_user(roster_usr->jid, roster_usr->name, - newgroupname, roster_usr->type); + newgroupname, roster_usr->type); roster_clone = (roster*)sl_clone->data; roster_clone->subscription = roster_usr->subscription; roster_clone->flags = roster_usr->flags;