diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-22 21:59:27 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-22 21:59:27 +0000 |
commit | f44c0036572d5557d2496748a4190a61e40e61ff (patch) | |
tree | bceb908e8542883ed246f96b4c619c0c49a06782 /src/vpn/gnunet-service-dns.c | |
parent | 9d87d51965287d83ee332b8c50baff95bd62649a (diff) | |
download | gnunet-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-service-dns.c')
-rw-r--r-- | src/vpn/gnunet-service-dns.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/vpn/gnunet-service-dns.c b/src/vpn/gnunet-service-dns.c index 49e774dc2..4aa04ddfa 100644 --- a/src/vpn/gnunet-service-dns.c +++ b/src/vpn/gnunet-service-dns.c | |||
@@ -325,7 +325,9 @@ mesh_send (void *cls, size_t size, void *buf) | |||
325 | void | 325 | void |
326 | mesh_connect (void *cls, const struct GNUNET_PeerIdentity *peer, | 326 | mesh_connect (void *cls, const struct GNUNET_PeerIdentity *peer, |
327 | const struct GNUNET_ATS_Information *atsi | 327 | const struct GNUNET_ATS_Information *atsi |
328 | __attribute__ ((unused))) | 328 | __attribute__ ((unused)), |
329 | unsigned int atsi_count | ||
330 | __attribute__ ((unused))) | ||
329 | { | 331 | { |
330 | if (NULL == peer) | 332 | if (NULL == peer) |
331 | return; | 333 | return; |
@@ -395,7 +397,9 @@ receive_mesh_query (void *cls | |||
395 | __attribute__ ((unused)), | 397 | __attribute__ ((unused)), |
396 | const struct GNUNET_MessageHeader *message, | 398 | const struct GNUNET_MessageHeader *message, |
397 | const struct GNUNET_ATS_Information *atsi | 399 | const struct GNUNET_ATS_Information *atsi |
398 | __attribute__ ((unused))) | 400 | __attribute__ ((unused)), |
401 | unsigned int atsi_count | ||
402 | __attribute__ ((unused))) | ||
399 | { | 403 | { |
400 | struct dns_pkt *dns = (struct dns_pkt *) (message + 1); | 404 | struct dns_pkt *dns = (struct dns_pkt *) (message + 1); |
401 | 405 | ||
@@ -429,7 +433,9 @@ receive_mesh_answer (void *cls | |||
429 | const struct GNUNET_PeerIdentity *sender, | 433 | const struct GNUNET_PeerIdentity *sender, |
430 | const struct GNUNET_MessageHeader *message, | 434 | const struct GNUNET_MessageHeader *message, |
431 | const struct GNUNET_ATS_Information *atsi | 435 | const struct GNUNET_ATS_Information *atsi |
432 | __attribute__ ((unused))) | 436 | __attribute__ ((unused)), |
437 | unsigned int atsi_count | ||
438 | __attribute__ ((unused))) | ||
433 | { | 439 | { |
434 | /* TODo: size check */ | 440 | /* TODo: size check */ |
435 | struct dns_pkt *dns = (struct dns_pkt *) (message + 1); | 441 | struct dns_pkt *dns = (struct dns_pkt *) (message + 1); |