aboutsummaryrefslogtreecommitdiff
path: root/src/vpn/gnunet-daemon-vpn.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-10-22 21:59:27 +0000
committerChristian Grothoff <christian@grothoff.org>2011-10-22 21:59:27 +0000
commitf44c0036572d5557d2496748a4190a61e40e61ff (patch)
treebceb908e8542883ed246f96b4c619c0c49a06782 /src/vpn/gnunet-daemon-vpn.c
parent9d87d51965287d83ee332b8c50baff95bd62649a (diff)
downloadgnunet-f44c0036572d5557d2496748a4190a61e40e61ff.tar.gz
gnunet-f44c0036572d5557d2496748a4190a61e40e61ff.zip
replacing 0-terminated atsi-array with array+length in core API (and the core-connect IPC)
Diffstat (limited to 'src/vpn/gnunet-daemon-vpn.c')
-rw-r--r--src/vpn/gnunet-daemon-vpn.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/vpn/gnunet-daemon-vpn.c b/src/vpn/gnunet-daemon-vpn.c
index 0f7bdff70..a6d051e9c 100644
--- a/src/vpn/gnunet-daemon-vpn.c
+++ b/src/vpn/gnunet-daemon-vpn.c
@@ -341,7 +341,9 @@ port_in_ports (uint64_t ports, uint16_t port)
341void 341void
342send_pkt_to_peer (void *cls, const struct GNUNET_PeerIdentity *peer, 342send_pkt_to_peer (void *cls, const struct GNUNET_PeerIdentity *peer,
343 const struct GNUNET_ATS_Information *atsi 343 const struct GNUNET_ATS_Information *atsi
344 __attribute__ ((unused))) 344 __attribute__ ((unused)),
345 unsigned int atsi_count
346 __attribute__ ((unused)))
345{ 347{
346 /* peer == NULL means that all peers in this request are connected */ 348 /* peer == NULL means that all peers in this request are connected */
347 if (peer == NULL) 349 if (peer == NULL)
@@ -872,7 +874,9 @@ receive_udp_back (void *cls
872 __attribute__ ((unused)), 874 __attribute__ ((unused)),
873 const struct GNUNET_MessageHeader *message, 875 const struct GNUNET_MessageHeader *message,
874 const struct GNUNET_ATS_Information *atsi 876 const struct GNUNET_ATS_Information *atsi
875 __attribute__ ((unused))) 877 __attribute__ ((unused)),
878 unsigned int atsi_count
879 __attribute__ ((unused)))
876{ 880{
877 GNUNET_HashCode *desc = (GNUNET_HashCode *) (message + 1); 881 GNUNET_HashCode *desc = (GNUNET_HashCode *) (message + 1);
878 struct remote_addr *s = (struct remote_addr *) desc; 882 struct remote_addr *s = (struct remote_addr *) desc;
@@ -1051,7 +1055,9 @@ receive_tcp_back (void *cls
1051 __attribute__ ((unused)), 1055 __attribute__ ((unused)),
1052 const struct GNUNET_MessageHeader *message, 1056 const struct GNUNET_MessageHeader *message,
1053 const struct GNUNET_ATS_Information *atsi 1057 const struct GNUNET_ATS_Information *atsi
1054 __attribute__ ((unused))) 1058 __attribute__ ((unused)),
1059 unsigned int atsi_count
1060 __attribute__ ((unused)))
1055{ 1061{
1056 GNUNET_HashCode *desc = (GNUNET_HashCode *) (message + 1); 1062 GNUNET_HashCode *desc = (GNUNET_HashCode *) (message + 1);
1057 struct remote_addr *s = (struct remote_addr *) desc; 1063 struct remote_addr *s = (struct remote_addr *) desc;