--- 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;