aboutsummaryrefslogtreecommitdiff
path: root/src/vpn/gnunet-daemon-vpn.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-11-28 16:09:47 +0000
committerChristian Grothoff <christian@grothoff.org>2011-11-28 16:09:47 +0000
commit4917fb20a07aa3221683c8a2112c514f44594350 (patch)
tree3584e6988f6bcddd19ea9d77c040e02d659a79c9 /src/vpn/gnunet-daemon-vpn.c
parent636b3202c2ea8ebc6dd51a90c839a2e495ea0d27 (diff)
downloadgnunet-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.c20
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 */
80static void 80static void
81cleanup (void *cls 81cleanup (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
170static void 170static void
171collect_mappings (void *cls 171collect_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)
336void 336void
337send_pkt_to_peer (void *cls, const struct GNUNET_PeerIdentity *peer, 337send_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
858static int 858static int
859receive_udp_back (void *cls 859receive_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
1035static int 1035static int
1036receive_tcp_back (void *cls 1036receive_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 */
1247static void 1247static void
1248run (void *cls, char *const *args __attribute__ ((unused)), const char *cfgfilep 1248run (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},