Repositories
/
olsrd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2a0088a
)
mDNS: BUGFIX, mDNS plugin, hello message of router election not sent if debug = 0
author
Alessandro
<enterprise.nx@gmail.com>
Sun, 12 Aug 2012 11:12:31 +0000
(13:12 +0200)
committer
Saverio Proto
<zioproto@gmail.com>
Mon, 13 Aug 2012 17:39:24 +0000
(19:39 +0200)
lib/mdns/src/RouterElection.c
patch
|
blob
|
history
diff --git
a/lib/mdns/src/RouterElection.c
b/lib/mdns/src/RouterElection.c
index
73c488f
..
f557eaf
100644
(file)
--- 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,"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));
}
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,"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;
}
}
return;