Fix examples to use new API and lots of compiler warnings.

This commit is contained in:
Jack Moffitt
2008-07-02 23:17:27 +00:00
parent 65a174ee7e
commit 9c49b16554
22 changed files with 197 additions and 71 deletions

View File

@@ -112,7 +112,7 @@ int main(int argc, char **argv)
xmpp_conn_set_pass(conn, argv[2]);
/* initiate connection */
xmpp_connect_client(conn, argv[3], conn_handler, ctx);
xmpp_connect_client(conn, argv[3], NULL, 0, conn_handler, ctx);
/* start the event loop */
xmpp_run(ctx);

View File

@@ -72,7 +72,7 @@ int main(int argc, char **argv)
xmpp_conn_set_pass(conn, pass);
/* initiate connection */
xmpp_connect_client(conn, server, conn_handler, ctx);
xmpp_connect_client(conn, server, NULL, 0, conn_handler, ctx);
/* enter the event loop -
our connect handler will trigger an exit */

View File

@@ -99,7 +99,7 @@ int main(int argc, char **argv)
xmpp_conn_t *conn;
if (argc != 4) {
fprintf(stderr, "Usage: active <jid> <pass> <server>\n\n");
fprintf(stderr, "Usage: roster <jid> <pass> <server>\n\n");
return 1;
}
@@ -117,7 +117,7 @@ int main(int argc, char **argv)
xmpp_conn_set_pass(conn, argv[2]);
/* initiate connection */
xmpp_connect_client(conn, argv[3], conn_handler, ctx);
xmpp_connect_client(conn, argv[3], NULL, 0, conn_handler, ctx);
/* start the event loop */
xmpp_run(ctx);