From: Alessandro Date: Sun, 12 Aug 2012 11:12:31 +0000 (+0200) Subject: mDNS: BUGFIX, mDNS plugin, hello message of router election not sent if debug = 0 X-Git-Tag: v0.6.5~202^2~7 X-Git-Url: http://olsr.org/git/?p=olsrd.git;a=commitdiff_plain;h=4988a8fb78281256a46add6dc5934dcaea14dd05 mDNS: BUGFIX, mDNS plugin, hello message of router election not sent if debug = 0 --- 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;