projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d486225
)
amqp1 plugin: no need to initialize statics
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Thu, 24 May 2018 11:26:16 +0000
(13:26 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Thu, 24 May 2018 11:26:16 +0000
(13:26 +0200)
src/amqp1.c
patch
|
blob
|
history
diff --git
a/src/amqp1.c
b/src/amqp1.c
index
4ba7359
..
abf4e47
100644
(file)
--- a/
src/amqp1.c
+++ b/
src/amqp1.c
@@
-92,16
+92,16
@@
DEQ_DECLARE(cd_message_t, cd_message_list_t);
/*
* Globals
*/
/*
* 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 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;
/*
static pthread_t event_thread_id;
/*