From: Ruben Kerkhof Date: Thu, 24 May 2018 11:26:16 +0000 (+0200) Subject: amqp1 plugin: no need to initialize statics X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=0a9dc5f8443de4fa54153ad4517e764b43f86b5e;p=collectd.git amqp1 plugin: no need to initialize statics --- 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; /*