Naming of statics

This commit is contained in:
James Booth
2012-02-12 22:09:07 +00:00
parent b71f61d400
commit 7aa1d931a0
6 changed files with 164 additions and 150 deletions

View File

@@ -101,7 +101,7 @@ static int _jabber_message_handler(xmpp_conn_t * const conn,
message = xmpp_stanza_get_text(xmpp_stanza_get_child_by_name(stanza, "body"));
char *from = xmpp_stanza_get_attribute(stanza, "from");
show_incomming_msg(from, message);
win_show_incomming_msg(from, message);
return 1;
}
@@ -141,19 +141,19 @@ static int _roster_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanz
log_msg(CONN, "ERROR: query failed");
else {
query = xmpp_stanza_get_child_by_name(stanza, "query");
cons_show("Roster:");
win_cons_show("Roster:");
for (item = xmpp_stanza_get_children(query); item;
item = xmpp_stanza_get_next(item)) {
if ((name = xmpp_stanza_get_attribute(item, "name"))) {
char line[200];
sprintf(line, " %s (%s)", name,
xmpp_stanza_get_attribute(item, "jid"));
cons_show(line);
win_cons_show(line);
} else {
char line[200];
sprintf(line, " %s",
xmpp_stanza_get_attribute(item, "jid"));
cons_show(line);
win_cons_show(line);
}
}
}