aboutsummaryrefslogtreecommitdiff
path: root/src/nat/nat.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-10-07 09:51:33 +0000
committerChristian Grothoff <christian@grothoff.org>2015-10-07 09:51:33 +0000
commit117a6b2f87eab48523f3ecd0d72d28ad9903c849 (patch)
treedc47d59f75047a2dfab458f116f4f80fa84ad57c /src/nat/nat.c
parent886d8cda082a8005c1a73a6d6603b9791121a7ae (diff)
downloadgnunet-117a6b2f87eab48523f3ecd0d72d28ad9903c849.tar.gz
gnunet-117a6b2f87eab48523f3ecd0d72d28ad9903c849.zip
stylistic fixes
Diffstat (limited to 'src/nat/nat.c')
-rw-r--r--src/nat/nat.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nat/nat.c b/src/nat/nat.c
index 709a13f03..3573ec497 100644
--- a/src/nat/nat.c
+++ b/src/nat/nat.c
@@ -1734,7 +1734,9 @@ GNUNET_NAT_register (const struct GNUNET_CONFIGURATION_Handle *cfg,
1734 binary = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-nat-client"); 1734 binary = GNUNET_OS_get_libexec_binary_path ("gnunet-helper-nat-client");
1735 if ((GNUNET_YES == h->enable_nat_client) && 1735 if ((GNUNET_YES == h->enable_nat_client) &&
1736 (GNUNET_YES != 1736 (GNUNET_YES !=
1737 GNUNET_OS_check_helper_binary (binary, GNUNET_YES, "-d 127.0.0.1 127.0.0.2 42"))) // none of these parameters are actually used in privilege testing mode 1737 GNUNET_OS_check_helper_binary (binary,
1738 GNUNET_YES,
1739 "-d 127.0.0.1 127.0.0.2 42"))) /* none of these parameters are actually used in privilege testing mode */
1738 { 1740 {
1739 h->enable_nat_client = GNUNET_NO; 1741 h->enable_nat_client = GNUNET_NO;
1740 LOG (GNUNET_ERROR_TYPE_WARNING, 1742 LOG (GNUNET_ERROR_TYPE_WARNING,
@@ -1814,7 +1816,7 @@ GNUNET_NAT_unregister (struct GNUNET_NAT_Handle *h)
1814 GNUNET_SCHEDULER_cancel (h->dns_task); 1816 GNUNET_SCHEDULER_cancel (h->dns_task);
1815 h->dns_task = NULL; 1817 h->dns_task = NULL;
1816 } 1818 }
1817 if (NULL != h->stun_task) 1819 if (NULL != h->stun_task)
1818 { 1820 {
1819 GNUNET_SCHEDULER_cancel (h->stun_task); 1821 GNUNET_SCHEDULER_cancel (h->stun_task);
1820 h->stun_task = NULL; 1822 h->stun_task = NULL;