From f4a3b66017b2800a3b1b3baccf1fc7cc204bb4e7 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Thu, 31 Aug 2023 16:13:20 +0200 Subject: [PATCH] Minor changes --- src/subscriber.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);