diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-28 16:09:47 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-28 16:09:47 +0000 |
commit | 4917fb20a07aa3221683c8a2112c514f44594350 (patch) | |
tree | 3584e6988f6bcddd19ea9d77c040e02d659a79c9 /src/vpn/gnunet-daemon-vpn.c | |
parent | 636b3202c2ea8ebc6dd51a90c839a2e495ea0d27 (diff) | |
download | gnunet-4917fb20a07aa3221683c8a2112c514f44594350.tar.gz gnunet-4917fb20a07aa3221683c8a2112c514f44594350.zip |
introducing GNUNET_UNUSED macro instead of hard-coding gcc attribute all over the place; also some further documentation fixes
Diffstat (limited to 'src/vpn/gnunet-daemon-vpn.c')
-rw-r--r-- | src/vpn/gnunet-daemon-vpn.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/vpn/gnunet-daemon-vpn.c b/src/vpn/gnunet-daemon-vpn.c index cc8001eae..93ee47e4e 100644 --- a/src/vpn/gnunet-daemon-vpn.c +++ b/src/vpn/gnunet-daemon-vpn.c | |||
@@ -79,7 +79,7 @@ GNUNET_SCHEDULER_TaskIdentifier shs_task; | |||
79 | */ | 79 | */ |
80 | static void | 80 | static void |
81 | cleanup (void *cls | 81 | cleanup (void *cls |
82 | __attribute__ ((unused)), | 82 | GNUNET_UNUSED, |
83 | const struct GNUNET_SCHEDULER_TaskContext *tskctx) | 83 | const struct GNUNET_SCHEDULER_TaskContext *tskctx) |
84 | { | 84 | { |
85 | GNUNET_assert (0 != (tskctx->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)); | 85 | GNUNET_assert (0 != (tskctx->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)); |
@@ -169,7 +169,7 @@ address4_mapping_exists (uint32_t addr) | |||
169 | 169 | ||
170 | static void | 170 | static void |
171 | collect_mappings (void *cls | 171 | collect_mappings (void *cls |
172 | __attribute__ ((unused)), | 172 | GNUNET_UNUSED, |
173 | const struct GNUNET_SCHEDULER_TaskContext *tc) | 173 | const struct GNUNET_SCHEDULER_TaskContext *tc) |
174 | { | 174 | { |
175 | if ((tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0) | 175 | if ((tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0) |
@@ -336,7 +336,7 @@ port_in_ports (uint64_t ports, uint16_t port) | |||
336 | void | 336 | void |
337 | send_pkt_to_peer (void *cls, const struct GNUNET_PeerIdentity *peer, | 337 | send_pkt_to_peer (void *cls, const struct GNUNET_PeerIdentity *peer, |
338 | const struct GNUNET_ATS_Information *atsi | 338 | const struct GNUNET_ATS_Information *atsi |
339 | __attribute__ ((unused))) | 339 | GNUNET_UNUSED) |
340 | { | 340 | { |
341 | /* peer == NULL means that all peers in this request are connected */ | 341 | /* peer == NULL means that all peers in this request are connected */ |
342 | if (peer == NULL) | 342 | if (peer == NULL) |
@@ -857,11 +857,11 @@ add_additional_port (struct map_entry *me, uint16_t port) | |||
857 | 857 | ||
858 | static int | 858 | static int |
859 | receive_udp_back (void *cls | 859 | receive_udp_back (void *cls |
860 | __attribute__ ((unused)), struct GNUNET_MESH_Tunnel *tunnel, | 860 | GNUNET_UNUSED, struct GNUNET_MESH_Tunnel *tunnel, |
861 | void **tunnel_ctx, const struct GNUNET_PeerIdentity *sender, | 861 | void **tunnel_ctx, const struct GNUNET_PeerIdentity *sender, |
862 | const struct GNUNET_MessageHeader *message, | 862 | const struct GNUNET_MessageHeader *message, |
863 | const struct GNUNET_ATS_Information *atsi | 863 | const struct GNUNET_ATS_Information *atsi |
864 | __attribute__ ((unused))) | 864 | GNUNET_UNUSED) |
865 | { | 865 | { |
866 | GNUNET_HashCode *desc = (GNUNET_HashCode *) (message + 1); | 866 | GNUNET_HashCode *desc = (GNUNET_HashCode *) (message + 1); |
867 | struct remote_addr *s = (struct remote_addr *) desc; | 867 | struct remote_addr *s = (struct remote_addr *) desc; |
@@ -1034,12 +1034,12 @@ receive_udp_back (void *cls | |||
1034 | 1034 | ||
1035 | static int | 1035 | static int |
1036 | receive_tcp_back (void *cls | 1036 | receive_tcp_back (void *cls |
1037 | __attribute__ ((unused)), struct GNUNET_MESH_Tunnel *tunnel, | 1037 | GNUNET_UNUSED, struct GNUNET_MESH_Tunnel *tunnel, |
1038 | void **tunnel_ctx, const struct GNUNET_PeerIdentity *sender | 1038 | void **tunnel_ctx, const struct GNUNET_PeerIdentity *sender |
1039 | __attribute__ ((unused)), | 1039 | GNUNET_UNUSED, |
1040 | const struct GNUNET_MessageHeader *message, | 1040 | const struct GNUNET_MessageHeader *message, |
1041 | const struct GNUNET_ATS_Information *atsi | 1041 | const struct GNUNET_ATS_Information *atsi |
1042 | __attribute__ ((unused))) | 1042 | GNUNET_UNUSED) |
1043 | { | 1043 | { |
1044 | GNUNET_HashCode *desc = (GNUNET_HashCode *) (message + 1); | 1044 | GNUNET_HashCode *desc = (GNUNET_HashCode *) (message + 1); |
1045 | struct remote_addr *s = (struct remote_addr *) desc; | 1045 | struct remote_addr *s = (struct remote_addr *) desc; |
@@ -1245,8 +1245,8 @@ cleaner (void *cls, const struct GNUNET_MESH_Tunnel *tunnel, void *tunnel_ctx) | |||
1245 | * @param cfg_ configuration | 1245 | * @param cfg_ configuration |
1246 | */ | 1246 | */ |
1247 | static void | 1247 | static void |
1248 | run (void *cls, char *const *args __attribute__ ((unused)), const char *cfgfilep | 1248 | run (void *cls, char *const *args GNUNET_UNUSED, const char *cfgfilep |
1249 | __attribute__ ((unused)), const struct GNUNET_CONFIGURATION_Handle *cfg_) | 1249 | GNUNET_UNUSED, const struct GNUNET_CONFIGURATION_Handle *cfg_) |
1250 | { | 1250 | { |
1251 | static const struct GNUNET_MESH_MessageHandler handlers[] = { | 1251 | static const struct GNUNET_MESH_MessageHandler handlers[] = { |
1252 | {receive_udp_back, GNUNET_MESSAGE_TYPE_VPN_SERVICE_UDP_BACK, 0}, | 1252 | {receive_udp_back, GNUNET_MESSAGE_TYPE_VPN_SERVICE_UDP_BACK, 0}, |