diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-12-05 10:41:13 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-12-05 10:41:13 +0000 |
commit | d8c56c79613f603765984a9a8fc2ed9036bdd2e6 (patch) | |
tree | d0b5983fc37126b4575453bc6d9f7de5c271d7b0 /src/transport/plugin_transport_udp_broadcasting.c | |
parent | c015c4ba3cd0733d628df63f9d2e4d2a04247c52 (diff) | |
download | gnunet-d8c56c79613f603765984a9a8fc2ed9036bdd2e6.tar.gz gnunet-d8c56c79613f603765984a9a8fc2ed9036bdd2e6.zip |
- fix compilation issues
Diffstat (limited to 'src/transport/plugin_transport_udp_broadcasting.c')
-rw-r--r-- | src/transport/plugin_transport_udp_broadcasting.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/transport/plugin_transport_udp_broadcasting.c b/src/transport/plugin_transport_udp_broadcasting.c index b1b81f758..153259382 100644 --- a/src/transport/plugin_transport_udp_broadcasting.c +++ b/src/transport/plugin_transport_udp_broadcasting.c | |||
@@ -94,7 +94,7 @@ struct BroadcastAddress | |||
94 | /* | 94 | /* |
95 | * Cryogenic fields | 95 | * Cryogenic fields |
96 | */ | 96 | */ |
97 | struct GNUNET_DISK_FileHandle cryogenic_fd; | 97 | struct GNUNET_DISK_FileHandle *cryogenic_fd; |
98 | 98 | ||
99 | struct pm_times cryogenic_times; | 99 | struct pm_times cryogenic_times; |
100 | }; | 100 | }; |
@@ -344,12 +344,12 @@ udp_ipv4_broadcast_send (void *cls, | |||
344 | /* | 344 | /* |
345 | * Cryogenic | 345 | * Cryogenic |
346 | */ | 346 | */ |
347 | if (baddr->cryogenic_fd.fd > 0) | 347 | if (NULL != baddr->cryogenic_fd) |
348 | { | 348 | { |
349 | baddr->cryogenic_times.delay_msecs = (plugin->broadcast_interval/1000.0)*0.5; | 349 | baddr->cryogenic_times.delay_msecs = (plugin->broadcast_interval.rel_value_us/1000.0)*0.5; |
350 | baddr->cryogenic_times.timeout_msecs = (plugin->broadcast_interval/1000.0)*1.5; | 350 | baddr->cryogenic_times.timeout_msecs = (plugin->broadcast_interval.rel_value_us/1000.0)*1.5; |
351 | 351 | ||
352 | if (ioctl(baddr->cryogenic_fd.fd, | 352 | if (ioctl(baddr->cryogenic_fd->fd, |
353 | PM_SET_DELAY_AND_TIMEOUT, | 353 | PM_SET_DELAY_AND_TIMEOUT, |
354 | &baddr->cryogenic_times) < 0) | 354 | &baddr->cryogenic_times) < 0) |
355 | { | 355 | { |
@@ -360,7 +360,7 @@ udp_ipv4_broadcast_send (void *cls, | |||
360 | } | 360 | } |
361 | else | 361 | else |
362 | GNUNET_SCHEDULER_add_write_file (GNUNET_TIME_UNIT_FOREVER_REL, | 362 | GNUNET_SCHEDULER_add_write_file (GNUNET_TIME_UNIT_FOREVER_REL, |
363 | &baddr->cryogenic_fd, | 363 | baddr->cryogenic_fd, |
364 | &udp_ipv4_broadcast_send, | 364 | &udp_ipv4_broadcast_send, |
365 | baddr); | 365 | baddr); |
366 | 366 | ||
@@ -426,12 +426,12 @@ udp_ipv6_broadcast_send (void *cls, | |||
426 | /* | 426 | /* |
427 | * Cryogenic | 427 | * Cryogenic |
428 | */ | 428 | */ |
429 | if (baddr->cryogenic_fd.fd > 0) | 429 | if (NULL != baddr->cryogenic_fd) |
430 | { | 430 | { |
431 | baddr->cryogenic_times.delay_msecs = (plugin->broadcast_interval/1000.0)*0.5; | 431 | baddr->cryogenic_times.delay_msecs = (plugin->broadcast_interval.rel_value_us/1000.0)*0.5; |
432 | baddr->cryogenic_times.timeout_msecs = (plugin->broadcast_interval/1000.0)*1.5; | 432 | baddr->cryogenic_times.timeout_msecs = (plugin->broadcast_interval.rel_value_us/1000.0)*1.5; |
433 | 433 | ||
434 | if (ioctl(baddr->cryogenic_fd.fd, | 434 | if (ioctl(baddr->cryogenic_fd->fd, |
435 | PM_SET_DELAY_AND_TIMEOUT, | 435 | PM_SET_DELAY_AND_TIMEOUT, |
436 | &baddr->cryogenic_times) < 0) | 436 | &baddr->cryogenic_times) < 0) |
437 | { | 437 | { |
@@ -442,7 +442,7 @@ udp_ipv6_broadcast_send (void *cls, | |||
442 | } | 442 | } |
443 | else | 443 | else |
444 | GNUNET_SCHEDULER_add_write_file (GNUNET_TIME_UNIT_FOREVER_REL, | 444 | GNUNET_SCHEDULER_add_write_file (GNUNET_TIME_UNIT_FOREVER_REL, |
445 | &baddr->cryogenic_fd, | 445 | baddr->cryogenic_fd, |
446 | &udp_ipv4_broadcast_send, | 446 | &udp_ipv4_broadcast_send, |
447 | baddr); | 447 | baddr); |
448 | } | 448 | } |
@@ -667,7 +667,7 @@ stop_broadcast (struct Plugin *plugin) | |||
667 | /* | 667 | /* |
668 | * Close Cryogenic FD | 668 | * Close Cryogenic FD |
669 | */ | 669 | */ |
670 | GNUNET_DISK_file_cose(p->cryogenic_fd); | 670 | GNUNET_DISK_file_close(p->cryogenic_fd); |
671 | 671 | ||
672 | GNUNET_CONTAINER_DLL_remove (plugin->broadcast_head, | 672 | GNUNET_CONTAINER_DLL_remove (plugin->broadcast_head, |
673 | plugin->broadcast_tail, p); | 673 | plugin->broadcast_tail, p); |