diff options
author | xengineering <me@xengineering.eu> | 2022-10-06 21:58:37 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2022-10-06 21:58:37 +0200 |
commit | d724097397a470755ce1cb203cb3870d7a349f53 (patch) | |
tree | 0f65b4f69dc8d503ac536ad2bd21e2fe783f8e20 | |
parent | 6ad9d1c4f045f9fb5dabefe9c2e84b5be1c54762 (diff) | |
download | limox-d724097397a470755ce1cb203cb3870d7a349f53.tar limox-d724097397a470755ce1cb203cb3870d7a349f53.tar.zst limox-d724097397a470755ce1cb203cb3870d7a349f53.zip |
Remove global variable log
-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(); } |