From 0a9dc5f8443de4fa54153ad4517e764b43f86b5e Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Thu, 24 May 2018 13:26:16 +0200 Subject: [PATCH] amqp1 plugin: no need to initialize statics --- src/amqp1.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/amqp1.c b/src/amqp1.c index 4ba73596..abf4e476 100644 --- a/src/amqp1.c +++ b/src/amqp1.c @@ -92,16 +92,16 @@ DEQ_DECLARE(cd_message_t, cd_message_list_t); /* * Globals */ -static pn_connection_t *conn = NULL; -static pn_link_t *sender = NULL; -static pn_proactor_t *proactor = NULL; +static pn_connection_t *conn; +static pn_link_t *sender; +static pn_proactor_t *proactor; static pthread_mutex_t send_lock; static cd_message_list_t out_messages; static uint64_t cd_tag = 1; -static uint64_t acknowledged = 0; -static amqp1_config_transport_t *transport = NULL; -static bool stopping = false; -static int event_thread_running = 0; +static uint64_t acknowledged; +static amqp1_config_transport_t *transport; +static bool stopping; +static int event_thread_running; static pthread_t event_thread_id; /* -- 2.11.0