diff options
Diffstat (limited to 'src/vpn/gnunet-daemon-exit.c')
-rw-r--r-- | src/vpn/gnunet-daemon-exit.c | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/vpn/gnunet-daemon-exit.c b/src/vpn/gnunet-daemon-exit.c index 0ee07fead..eaa50d2e1 100644 --- a/src/vpn/gnunet-daemon-exit.c +++ b/src/vpn/gnunet-daemon-exit.c | |||
@@ -157,7 +157,7 @@ static struct GNUNET_CONTAINER_MultiHashMap *tcp_services; | |||
157 | * Function that frees everything from a hashmap | 157 | * Function that frees everything from a hashmap |
158 | */ | 158 | */ |
159 | static int | 159 | static int |
160 | free_iterate(void* cls, const GNUNET_HashCode* hash, void* value) | 160 | free_iterate(void* cls __attribute__((unused)), const GNUNET_HashCode* hash __attribute__((unused)), void* value) |
161 | { | 161 | { |
162 | GNUNET_free(value); | 162 | GNUNET_free(value); |
163 | return GNUNET_YES; | 163 | return GNUNET_YES; |
@@ -167,7 +167,7 @@ free_iterate(void* cls, const GNUNET_HashCode* hash, void* value) | |||
167 | * Function scheduled as very last function, cleans up after us | 167 | * Function scheduled as very last function, cleans up after us |
168 | */ | 168 | */ |
169 | static void | 169 | static void |
170 | cleanup(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tskctx) { | 170 | cleanup(void* cls __attribute__((unused)), const struct GNUNET_SCHEDULER_TaskContext* tskctx) { |
171 | GNUNET_assert (0 != (tskctx->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)); | 171 | GNUNET_assert (0 != (tskctx->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)); |
172 | 172 | ||
173 | GNUNET_CONTAINER_multihashmap_iterate(udp_connections, | 173 | GNUNET_CONTAINER_multihashmap_iterate(udp_connections, |
@@ -407,8 +407,8 @@ tcp_from_helper (struct tcp_pkt *tcp, unsigned char *dadr, size_t addrlen, | |||
407 | * Receive packets from the helper-process | 407 | * Receive packets from the helper-process |
408 | */ | 408 | */ |
409 | static void | 409 | static void |
410 | message_token (void *cls, | 410 | message_token (void *cls __attribute__((unused)), |
411 | void *client, const struct GNUNET_MessageHeader *message) | 411 | void *client __attribute__((unused)), const struct GNUNET_MessageHeader *message) |
412 | { | 412 | { |
413 | GNUNET_assert (ntohs (message->type) == GNUNET_MESSAGE_TYPE_VPN_HELPER); | 413 | GNUNET_assert (ntohs (message->type) == GNUNET_MESSAGE_TYPE_VPN_HELPER); |
414 | 414 | ||
@@ -459,7 +459,7 @@ message_token (void *cls, | |||
459 | * "OFFERED-PORT:HOSTNAME:HOST-PORT" (SPACE <more of those>)* | 459 | * "OFFERED-PORT:HOSTNAME:HOST-PORT" (SPACE <more of those>)* |
460 | */ | 460 | */ |
461 | static void | 461 | static void |
462 | read_service_conf (void *cls, const char *section, const char *option, | 462 | read_service_conf (void *cls __attribute__((unused)), const char *section, const char *option, |
463 | const char *value) | 463 | const char *value) |
464 | { | 464 | { |
465 | char *cpy; | 465 | char *cpy; |
@@ -831,12 +831,12 @@ prepare_ipv6_packet (ssize_t len, ssize_t pktlen, void *payload, | |||
831 | * The messages are one GNUNET_HashCode for the service followed by a struct tcp_pkt | 831 | * The messages are one GNUNET_HashCode for the service followed by a struct tcp_pkt |
832 | */ | 832 | */ |
833 | static int | 833 | static int |
834 | receive_tcp_service (void *cls, | 834 | receive_tcp_service (void *cls __attribute__((unused)), |
835 | struct GNUNET_MESH_Tunnel *tunnel, | 835 | struct GNUNET_MESH_Tunnel *tunnel, |
836 | void **tunnel_ctx, | 836 | void **tunnel_ctx __attribute__((unused)), |
837 | const struct GNUNET_PeerIdentity *sender, | 837 | const struct GNUNET_PeerIdentity *sender __attribute__((unused)), |
838 | const struct GNUNET_MessageHeader *message, | 838 | const struct GNUNET_MessageHeader *message, |
839 | const struct GNUNET_TRANSPORT_ATS_Information *atsi) | 839 | const struct GNUNET_TRANSPORT_ATS_Information *atsi __attribute__((unused))) |
840 | { | 840 | { |
841 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received TCP-Packet\n"); | 841 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received TCP-Packet\n"); |
842 | GNUNET_HashCode *desc = (GNUNET_HashCode *) (message + 1); | 842 | GNUNET_HashCode *desc = (GNUNET_HashCode *) (message + 1); |
@@ -932,12 +932,12 @@ receive_tcp_service (void *cls, | |||
932 | } | 932 | } |
933 | 933 | ||
934 | static int | 934 | static int |
935 | receive_tcp_remote (void *cls, | 935 | receive_tcp_remote (void *cls __attribute__((unused)), |
936 | struct GNUNET_MESH_Tunnel *tunnel, | 936 | struct GNUNET_MESH_Tunnel *tunnel, |
937 | void **tunnel_ctx, | 937 | void **tunnel_ctx __attribute__((unused)), |
938 | const struct GNUNET_PeerIdentity *sender, | 938 | const struct GNUNET_PeerIdentity *sender __attribute__((unused)), |
939 | const struct GNUNET_MessageHeader *message, | 939 | const struct GNUNET_MessageHeader *message, |
940 | const struct GNUNET_TRANSPORT_ATS_Information *atsi) | 940 | const struct GNUNET_TRANSPORT_ATS_Information *atsi __attribute__((unused))) |
941 | { | 941 | { |
942 | GNUNET_HashCode *desc = (GNUNET_HashCode *) (message + 1); | 942 | GNUNET_HashCode *desc = (GNUNET_HashCode *) (message + 1); |
943 | struct udp_pkt *pkt = (struct udp_pkt *) (desc + 1); | 943 | struct udp_pkt *pkt = (struct udp_pkt *) (desc + 1); |
@@ -1000,12 +1000,12 @@ receive_tcp_remote (void *cls, | |||
1000 | } | 1000 | } |
1001 | 1001 | ||
1002 | static int | 1002 | static int |
1003 | receive_udp_remote (void *cls, | 1003 | receive_udp_remote (void *cls __attribute__((unused)), |
1004 | struct GNUNET_MESH_Tunnel *tunnel, | 1004 | struct GNUNET_MESH_Tunnel *tunnel, |
1005 | void **tunnel_ctx, | 1005 | void **tunnel_ctx __attribute__((unused)), |
1006 | const struct GNUNET_PeerIdentity *sender, | 1006 | const struct GNUNET_PeerIdentity *sender __attribute__((unused)), |
1007 | const struct GNUNET_MessageHeader *message, | 1007 | const struct GNUNET_MessageHeader *message, |
1008 | const struct GNUNET_TRANSPORT_ATS_Information *atsi) | 1008 | const struct GNUNET_TRANSPORT_ATS_Information *atsi __attribute__((unused))) |
1009 | { | 1009 | { |
1010 | GNUNET_HashCode *desc = (GNUNET_HashCode *) (message + 1); | 1010 | GNUNET_HashCode *desc = (GNUNET_HashCode *) (message + 1); |
1011 | struct udp_pkt *pkt = (struct udp_pkt *) (desc + 1); | 1011 | struct udp_pkt *pkt = (struct udp_pkt *) (desc + 1); |
@@ -1078,12 +1078,12 @@ receive_udp_remote (void *cls, | |||
1078 | * The messages are one GNUNET_HashCode for the service, followed by a struct udp_pkt | 1078 | * The messages are one GNUNET_HashCode for the service, followed by a struct udp_pkt |
1079 | */ | 1079 | */ |
1080 | static int | 1080 | static int |
1081 | receive_udp_service (void *cls, | 1081 | receive_udp_service (void *cls __attribute__((unused)), |
1082 | struct GNUNET_MESH_Tunnel *tunnel, | 1082 | struct GNUNET_MESH_Tunnel *tunnel, |
1083 | void **tunnel_ctx, | 1083 | void **tunnel_ctx __attribute__((unused)), |
1084 | const struct GNUNET_PeerIdentity *sender, | 1084 | const struct GNUNET_PeerIdentity *sender __attribute__((unused)), |
1085 | const struct GNUNET_MessageHeader *message, | 1085 | const struct GNUNET_MessageHeader *message, |
1086 | const struct GNUNET_TRANSPORT_ATS_Information *atsi) | 1086 | const struct GNUNET_TRANSPORT_ATS_Information *atsi __attribute__((unused))) |
1087 | { | 1087 | { |
1088 | GNUNET_HashCode *desc = (GNUNET_HashCode *) (message + 1); | 1088 | GNUNET_HashCode *desc = (GNUNET_HashCode *) (message + 1); |
1089 | struct udp_pkt *pkt = (struct udp_pkt *) (desc + 1); | 1089 | struct udp_pkt *pkt = (struct udp_pkt *) (desc + 1); |
@@ -1184,8 +1184,8 @@ receive_udp_service (void *cls, | |||
1184 | */ | 1184 | */ |
1185 | static void | 1185 | static void |
1186 | run (void *cls, | 1186 | run (void *cls, |
1187 | char *const *args, | 1187 | char *const *args __attribute__((unused)), |
1188 | const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *cfg_) | 1188 | const char *cfgfile __attribute__((unused)), const struct GNUNET_CONFIGURATION_Handle *cfg_) |
1189 | { | 1189 | { |
1190 | static const struct GNUNET_MESH_MessageHandler handlers[] = { | 1190 | static const struct GNUNET_MESH_MessageHandler handlers[] = { |
1191 | {receive_udp_service, GNUNET_MESSAGE_TYPE_SERVICE_UDP, 0}, | 1191 | {receive_udp_service, GNUNET_MESSAGE_TYPE_SERVICE_UDP, 0}, |