aboutsummaryrefslogtreecommitdiff
path: root/src/vpn/gnunet-daemon-vpn.c
diff options
context:
space:
mode:
authorPhilipp Tölke <toelke@in.tum.de>2011-06-15 07:15:39 +0000
committerPhilipp Tölke <toelke@in.tum.de>2011-06-15 07:15:39 +0000
commit238b4ac9407e047a7a2d6f0c951e70ef6e400d82 (patch)
tree6ed40257e05d95ea3c8003e727101f035169bb11 /src/vpn/gnunet-daemon-vpn.c
parent36ae035929059eccda334bdecdcc774d7e0f3496 (diff)
downloadgnunet-238b4ac9407e047a7a2d6f0c951e70ef6e400d82.tar.gz
gnunet-238b4ac9407e047a7a2d6f0c951e70ef6e400d82.zip
fix bugs found by compiling with -Wextra
Diffstat (limited to 'src/vpn/gnunet-daemon-vpn.c')
-rw-r--r--src/vpn/gnunet-daemon-vpn.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vpn/gnunet-daemon-vpn.c b/src/vpn/gnunet-daemon-vpn.c
index 49a33a7bb..1be010685 100644
--- a/src/vpn/gnunet-daemon-vpn.c
+++ b/src/vpn/gnunet-daemon-vpn.c
@@ -275,6 +275,9 @@ new_ip6addr_remote (unsigned char *buf, unsigned char *addr, char addrlen)
275 */ 275 */
276void 276void
277process_answer(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tc) { 277process_answer(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tc) {
278 if ( (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0)
279 return;
280
278 struct answer_packet* pkt = cls; 281 struct answer_packet* pkt = cls;
279 struct answer_packet_list* list; 282 struct answer_packet_list* list;
280 283
@@ -701,7 +704,7 @@ run (void *cls,
701 const char *cfgfile, 704 const char *cfgfile,
702 const struct GNUNET_CONFIGURATION_Handle *cfg_) 705 const struct GNUNET_CONFIGURATION_Handle *cfg_)
703{ 706{
704 const static struct GNUNET_MESH_MessageHandler handlers[] = { 707 static const struct GNUNET_MESH_MessageHandler handlers[] = {
705 {receive_udp_back, GNUNET_MESSAGE_TYPE_SERVICE_UDP_BACK, 0}, 708 {receive_udp_back, GNUNET_MESSAGE_TYPE_SERVICE_UDP_BACK, 0},
706 {receive_tcp_back, GNUNET_MESSAGE_TYPE_SERVICE_TCP_BACK, 0}, 709 {receive_tcp_back, GNUNET_MESSAGE_TYPE_SERVICE_TCP_BACK, 0},
707 {receive_udp_back, GNUNET_MESSAGE_TYPE_REMOTE_UDP_BACK, 0}, 710 {receive_udp_back, GNUNET_MESSAGE_TYPE_REMOTE_UDP_BACK, 0},