From 4988a8fb78281256a46add6dc5934dcaea14dd05 Mon Sep 17 00:00:00 2001 From: Alessandro Date: Sun, 12 Aug 2012 13:12:31 +0200 Subject: [PATCH] mDNS: BUGFIX, mDNS plugin, hello message of router election not sent if debug = 0 --- lib/mdns/src/RouterElection.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/mdns/src/RouterElection.c b/lib/mdns/src/RouterElection.c index 73c488f1..f557eaf8 100644 --- a/lib/mdns/src/RouterElection.c +++ b/lib/mdns/src/RouterElection.c @@ -121,8 +121,8 @@ void helloTimer (void *foo __attribute__ ((unused))){ OLSR_PRINTF(1,"hello running \n"); - OLSR_PRINTF(1,"%zd \n", sendto(walker->helloSkfd, (const char * ) hello, - sizeof(struct RtElHelloPkt), 0, (struct sockaddr *)&dest, sizeof(dest))); + sendto(walker->helloSkfd, (const char * ) hello, + sizeof(struct RtElHelloPkt), 0, (struct sockaddr *)&dest, sizeof(dest)); } else{ memset((char *) &dest6, 0, sizeof(dest6)); @@ -132,8 +132,8 @@ void helloTimer (void *foo __attribute__ ((unused))){ OLSR_PRINTF(1,"hello running \n"); - OLSR_PRINTF(1,"%i \n", (int) sendto(walker->helloSkfd, (const char * ) hello, - sizeof(struct RtElHelloPkt), 0, (struct sockaddr *)&dest6, sizeof(dest6))); + sendto(walker->helloSkfd, (const char * ) hello, + sizeof(struct RtElHelloPkt), 0, (struct sockaddr *)&dest6, sizeof(dest6)); } } return; -- 2.20.1