summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2022-10-06 21:58:37 +0200
committerxengineering <me@xengineering.eu>2022-10-06 21:58:37 +0200
commitd724097397a470755ce1cb203cb3870d7a349f53 (patch)
tree0f65b4f69dc8d503ac536ad2bd21e2fe783f8e20
parent6ad9d1c4f045f9fb5dabefe9c2e84b5be1c54762 (diff)
downloadlimox-d724097397a470755ce1cb203cb3870d7a349f53.tar
limox-d724097397a470755ce1cb203cb3870d7a349f53.tar.zst
limox-d724097397a470755ce1cb203cb3870d7a349f53.zip
Remove global variable log
-rw-r--r--net.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/net.c b/net.c
index 9f2b4f3..a3e30a3 100644
--- a/net.c
+++ b/net.c
@@ -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();
}