# HG changeset patch # User Mikael Berthe # Date 1197321308 -3600 # Node ID 5f91bac887eef1cec57fef1253bfcdd6776b946a # Parent 8f9928839a3641dd866bc6d89c92e1dbda090767 Minor style change diff -r 8f9928839a36 -r 5f91bac887ee mcabber/src/jabglue.c --- a/mcabber/src/jabglue.c Mon Dec 10 22:04:14 2007 +0100 +++ b/mcabber/src/jabglue.c Mon Dec 10 22:15:08 2007 +0100 @@ -1364,12 +1364,10 @@ // Walk through the storage bookmark tags x = xmlnode_get_firstchild(bookmarks); for ( ; x; x = xmlnode_get_nextsibling(x)) { - const char *fjid; - const char *p; - p = xmlnode_get_name(x); + const char *p = xmlnode_get_name(x); // If the node is a conference item, check the jid. if (p && !strcmp(p, "conference")) { - fjid = xmlnode_get_attrib(x, "jid"); + const char *fjid = xmlnode_get_attrib(x, "jid"); if (fjid && !strcasecmp(bjid, fjid)) return TRUE; } @@ -1389,12 +1387,10 @@ // Walk through the storage bookmark tags x = xmlnode_get_firstchild(bookmarks); for ( ; x; x = xmlnode_get_nextsibling(x)) { - const char *fjid; - const char *p; - p = xmlnode_get_name(x); + const char *p = xmlnode_get_name(x); // If the node is a conference item, check the jid. if (p && !strcmp(p, "conference")) { - fjid = xmlnode_get_attrib(x, "jid"); + const char *fjid = xmlnode_get_attrib(x, "jid"); if (fjid && !strcasecmp(bjid, fjid)) return xmlnode_get_tag_data(x, "nick"); } @@ -1418,12 +1414,10 @@ // Walk through the storage bookmark tags x = xmlnode_get_firstchild(bookmarks); for ( ; x; x = xmlnode_get_nextsibling(x)) { - const char *fjid; - const char *p; - p = xmlnode_get_name(x); + const char *p = xmlnode_get_name(x); // If the node is a conference item, let's add the note to our list. if (p && !strcmp(p, "conference")) { - fjid = xmlnode_get_attrib(x, "jid"); + const char *fjid = xmlnode_get_attrib(x, "jid"); if (!fjid) continue; sl_bookmarks = g_slist_append(sl_bookmarks, (char*)fjid); @@ -1457,12 +1451,10 @@ // Walk through the storage tags x = xmlnode_get_firstchild(bookmarks); for ( ; x; x = xmlnode_get_nextsibling(x)) { - const char *fjid; - const char *p; - p = xmlnode_get_name(x); + const char *p = xmlnode_get_name(x); // If the current node is a conference item, see if we have to replace it. if (p && !strcmp(p, "conference")) { - fjid = xmlnode_get_attrib(x, "jid"); + const char *fjid = xmlnode_get_attrib(x, "jid"); if (!fjid) continue; if (!strcmp(fjid, roomid)) { @@ -1610,12 +1602,10 @@ // Walk through the storage tags x = xmlnode_get_firstchild(rosternotes); for ( ; x; x = xmlnode_get_nextsibling(x)) { - const char *fjid; - const char *p; - p = xmlnode_get_name(x); + const char *p = xmlnode_get_name(x); // If the current node is a conference item, see if we have to replace it. if (p && !strcmp(p, "note")) { - fjid = xmlnode_get_attrib(x, "jid"); + const char *fjid = xmlnode_get_attrib(x, "jid"); if (!fjid) continue; if (!strcmp(fjid, barejid)) {