From: Carl Worth Date: Sun, 6 Jan 2008 02:37:10 +0000 (-0800) Subject: Remove some gratuitous prints X-Git-Url: https://git.cworth.org/git?p=loudgame;a=commitdiff_plain;h=e0371a16123cad151bd4cf89db649388e0aee672 Remove some gratuitous prints --- diff --git a/lm-echo.c b/lm-echo.c index d92188b..a93fb54 100644 --- a/lm-echo.c +++ b/lm-echo.c @@ -46,8 +46,6 @@ free_user_info (UserInfo *info) static void authentication_cb (LmConnection *connection, gboolean result, gpointer ud) { - gchar *string; - g_print ("Auth: %d\n", result); free_user_info ((UserInfo *) ud); @@ -57,9 +55,6 @@ authentication_cb (LmConnection *connection, gboolean result, gpointer ud) m = lm_message_new_with_sub_type (NULL, LM_MESSAGE_TYPE_PRESENCE, LM_MESSAGE_SUB_TYPE_AVAILABLE); - string = lm_message_node_to_string (m->node); - g_print (":: %s\n", string); - free (string); lm_connection_send (connection, m, NULL); lm_message_unref (m); @@ -70,11 +65,9 @@ authentication_cb (LmConnection *connection, gboolean result, gpointer ud) static void connection_open_cb (LmConnection *connection, gboolean result, UserInfo *info) { - g_print ("Connected callback\n"); lm_connection_authenticate (connection, info->name, info->passwd, "TestLM", authentication_cb, info, FALSE, NULL); - g_print ("Sent auth message\n"); } static void @@ -129,9 +122,6 @@ handle_messages (LmMessageHandler *handler, peer = lm_message_node_get_attribute (m->node, "from"); - - g_print ("Incoming message from: %s\n", peer); - body = lm_message_node_get_child (m->node, "body"); if (body) { body_str = lm_message_node_get_value (body); @@ -184,11 +174,9 @@ main (int argc, char **argv) result = lm_connection_open (connection, (LmResultFunction) connection_open_cb, info, NULL, NULL); - if (!result) { g_print ("Opening connection failed: %d\n", result); - } else { - g_print ("Returned from the connection_open\n"); + exit (1); } g_main_loop_run (data.main_loop);