aboutsummaryrefslogtreecommitdiff
path: root/src/util/connection.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-04-19 08:53:46 +0000
committerChristian Grothoff <christian@grothoff.org>2012-04-19 08:53:46 +0000
commitccc7218f3d2008d4e7ec5e222ba6b6451ec677ba (patch)
tree50664649cca13e5462dadea8c9bcde81c59e07ef /src/util/connection.c
parent75297c57a857d0c7c1428bed00e32ed2c8b5389d (diff)
downloadgnunet-ccc7218f3d2008d4e7ec5e222ba6b6451ec677ba.tar.gz
gnunet-ccc7218f3d2008d4e7ec5e222ba6b6451ec677ba.zip
-removing 2nd argument from GNUNET_CLIENT_disconnect as it was virtually always GNUNET_NO --- and all other uses indicate design problems
Diffstat (limited to 'src/util/connection.c')
-rw-r--r--src/util/connection.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/connection.c b/src/util/connection.c
index da7ba599d..6908144b7 100644
--- a/src/util/connection.c
+++ b/src/util/connection.c
@@ -323,6 +323,7 @@ GNUNET_CONNECTION_disable_corking (struct GNUNET_CONNECTION_Handle *sock)
323 return GNUNET_NETWORK_socket_disable_corking (sock->sock); 323 return GNUNET_NETWORK_socket_disable_corking (sock->sock);
324} 324}
325 325
326
326/** 327/**
327 * Create a socket handle by boxing an existing OS socket. The OS 328 * Create a socket handle by boxing an existing OS socket. The OS
328 * socket should henceforth be no longer used directly. 329 * socket should henceforth be no longer used directly.
@@ -477,6 +478,7 @@ GNUNET_CONNECTION_create_from_accept (GNUNET_CONNECTION_AccessCheck access,
477 return ret; 478 return ret;
478} 479}
479 480
481
480/** 482/**
481 * Obtain the network address of the other party. 483 * Obtain the network address of the other party.
482 * 484 *
@@ -1041,7 +1043,6 @@ GNUNET_CONNECTION_destroy (struct GNUNET_CONNECTION_Handle *sock,
1041 GNUNET_RESOLVER_request_cancel (sock->dns_active); 1043 GNUNET_RESOLVER_request_cancel (sock->dns_active);
1042 sock->dns_active = NULL; 1044 sock->dns_active = NULL;
1043 } 1045 }
1044
1045 GNUNET_assert (GNUNET_SCHEDULER_NO_TASK == sock->destroy_task); 1046 GNUNET_assert (GNUNET_SCHEDULER_NO_TASK == sock->destroy_task);
1046 sock->destroy_task = GNUNET_SCHEDULER_add_now (&destroy_continuation, sock); 1047 sock->destroy_task = GNUNET_SCHEDULER_add_now (&destroy_continuation, sock);
1047} 1048}