diff options
Diffstat (limited to 'net.c')
-rw-r--r-- | net.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -25,7 +25,6 @@ typedef enum { // these variables stay initialized for the whole runtime static net_state_t state; -static xmpp_log_t* log; static xmpp_ctx_t* ctx; // these variables stay initialized while the application is not disconnected @@ -136,8 +135,7 @@ void net_init(void) { fprintf(stderr, "net_init()\n"); xmpp_initialize(); - log = xmpp_get_default_logger(XMPP_LEVEL_DEBUG); // or NULL for silence - ctx = xmpp_ctx_new(NULL, log); + ctx = xmpp_ctx_new(NULL, xmpp_get_default_logger(XMPP_LEVEL_DEBUG)); state = DISCONNECTED; @@ -176,7 +174,6 @@ void net_quit(void) { fprintf(stderr, "net_quit()\n"); net_disconnect(); - log = NULL; xmpp_shutdown(); } |