diff options
| author | Loic Guegan <loic.guegan@mailbox.org> | 2023-08-31 16:13:20 +0200 |
|---|---|---|
| committer | Loic Guegan <loic.guegan@mailbox.org> | 2023-08-31 16:13:20 +0200 |
| commit | f4a3b66017b2800a3b1b3baccf1fc7cc204bb4e7 (patch) | |
| tree | 0ebfaeef56a42cdac0e6042b6641ec9c42fecfc4 | |
| parent | 76479f3e807ad359b9fb7926031f21607659aacb (diff) | |
Minor changes
| -rw-r--r-- | src/subscriber.c | 2 |
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); |
