From 3a56d68f475bb52d0faea08595982ac452bd2307 Mon Sep 17 00:00:00 2001 From: Tristan Le Guern Date: Wed, 29 Jul 2015 16:12:19 +0200 Subject: [PATCH] Convert active.c to the new helpers --- examples/active.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/active.c b/examples/active.c index 6d857bf..da99fb1 100644 --- a/examples/active.c +++ b/examples/active.c @@ -59,7 +59,7 @@ void conn_handler(xmpp_conn_t * const conn, const xmpp_conn_event_t status, xmpp_stanza_set_name(iq, "iq"); xmpp_stanza_set_type(iq, "get"); xmpp_stanza_set_id(iq, "active1"); - xmpp_stanza_set_attribute(iq, "to", "xxxxxxxxx.com"); + xmpp_stanza_set_to(iq, "xxxxxxxxx.com"); query = xmpp_stanza_new(ctx); xmpp_stanza_set_name(query, "query");