summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/subscriber.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/subscriber.c b/src/subscriber.c
index 08e5a25..44a2a41 100644
--- a/src/subscriber.c
+++ b/src/subscriber.c
@@ -5,6 +5,7 @@
/// @brief Set to non-zero to stop the processes
unsigned char __stop=0;
+char buffer[ZMQ_MSG_SIZE];
/**
* @brief Stop process properly on SIGINT
@@ -47,7 +48,6 @@ int main (int argc, char *argv [])
ZMQ_TOKEN, strlen(ZMQ_TOKEN));
//----- Listen
- char buffer[ZMQ_MSG_SIZE];
int size;
while(!__stop){
size=zmq_recv (subscriber, buffer, ZMQ_MSG_SIZE-1, 0);