From 55d9cd75679050b45f1b350decb95d05aac2a47e Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Tue, 18 Jul 2023 08:49:46 +0200 Subject: [PATCH] Minor changes --- src/logger.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/logger.c b/src/logger.c index 2aa565b..7655f75 100644 --- a/src/logger.c +++ b/src/logger.c @@ -29,7 +29,7 @@ void sighandler(int signo){ } } -void *publish(void *publisher); +void *publisher(void *zmq_publisher); typedef struct queue { int size; @@ -75,11 +75,11 @@ int main (int argc, char *argv []) } //----- Prepare our context and publisher - void *context = zmq_ctx_new (); - void *publisher = zmq_socket (context, ZMQ_PUB); + void *zmq_context = zmq_ctx_new (); + void *zmq_publisher = zmq_socket (zmq_context, ZMQ_PUB); char bindto[STATIC_LEN]; sprintf(bindto,"tcp://%s:%d",__ip,__port); - int rc = zmq_connect (publisher, bindto); + int rc = zmq_connect (zmq_publisher, bindto); if(rc!=0){ printf("Failed to connect to %s\n",bindto); exit(1); @@ -104,7 +104,7 @@ int main (int argc, char *argv []) for(int i=0;i