Mercurial > pidgin.yaz
changeset 18112:f52def9dc7c9
Warn be gone
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 16 Jun 2007 17:57:07 +0000 |
parents | 463aba76c5b6 |
children | 97b735ca9d7a cd385a6206e2 |
files | finch/libgnt/wms/irssi.c libpurple/protocols/jabber/iq.c |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/finch/libgnt/wms/irssi.c Sat Jun 16 04:06:16 2007 +0000 +++ b/finch/libgnt/wms/irssi.c Sat Jun 16 17:57:07 2007 +0000 @@ -177,7 +177,8 @@ { char title[256]; snprintf(title, sizeof(title), "%d: %s", - (int)g_object_get_data(G_OBJECT(node->me), "irssi-index") + 1, GNT_BOX(node->me)->title); + GPOINTER_TO_INT(g_object_get_data(G_OBJECT(node->me), "irssi-index")) + 1, + GNT_BOX(node->me)->title); wbkgdset(node->window, '\0' | COLOR_PAIR(gnt_widget_has_focus(node->me) ? GNT_COLOR_TITLE : GNT_COLOR_TITLE_D)); mvwaddstr(node->window, 0, 0, title); update_panels(); @@ -226,7 +227,7 @@ find_window_position(irssi, win, &hor, &vert); - switch ((int)list->data) { + switch (GPOINTER_TO_INT(list->data)) { case 'k': vert = MAX(0, vert - 1); break;
--- a/libpurple/protocols/jabber/iq.c Sat Jun 16 04:06:16 2007 +0000 +++ b/libpurple/protocols/jabber/iq.c Sat Jun 16 17:57:07 2007 +0000 @@ -208,9 +208,8 @@ static void urn_xmpp_ping_parse(JabberStream *js, xmlnode *packet) { - const char *type, *from, *id; + const char *type, *id; JabberIq *iq; - xmlnode *query; if(type && !strcmp(type, "get")) { iq = jabber_iq_new_query(js, JABBER_IQ_RESULT, "urn:xmpp:ping");