aboutsummaryrefslogtreecommitdiff
path: root/src/util/connection.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-04-19 14:58:38 +0000
committerChristian Grothoff <christian@grothoff.org>2012-04-19 14:58:38 +0000
commit9dfda11d4fba38cbf2cf23c9acdf2c31eebbc72e (patch)
tree58f6c65ed326a41ba4fee3abe1d3aa9d7625635c /src/util/connection.c
parent219a4faa65007636649166acc87b69447d7b463d (diff)
downloadgnunet-9dfda11d4fba38cbf2cf23c9acdf2c31eebbc72e.tar.gz
gnunet-9dfda11d4fba38cbf2cf23c9acdf2c31eebbc72e.zip
-doxygen
Diffstat (limited to 'src/util/connection.c')
-rw-r--r--src/util/connection.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/connection.c b/src/util/connection.c
index 4473b7bb5..ad39f5b48 100644
--- a/src/util/connection.c
+++ b/src/util/connection.c
@@ -884,15 +884,15 @@ GNUNET_CONNECTION_create_from_sockaddr (int af_family,
884 * Note that a connection that is still trying to connect is considered 884 * Note that a connection that is still trying to connect is considered
885 * valid. 885 * valid.
886 * 886 *
887 * @param sock connection to check 887 * @param connection connection to check
888 * @return GNUNET_YES if valid, GNUNET_NO otherwise 888 * @return GNUNET_YES if valid, GNUNET_NO otherwise
889 */ 889 */
890int 890int
891GNUNET_CONNECTION_check (struct GNUNET_CONNECTION_Handle *sock) 891GNUNET_CONNECTION_check (struct GNUNET_CONNECTION_Handle *connection)
892{ 892{
893 if ((sock->ap_head != NULL) || (sock->dns_active != NULL)) 893 if ((connection->ap_head != NULL) || (connection->dns_active != NULL))
894 return GNUNET_YES; /* still trying to connect */ 894 return GNUNET_YES; /* still trying to connect */
895 return (sock->sock == NULL) ? GNUNET_NO : GNUNET_YES; 895 return (connection->sock == NULL) ? GNUNET_NO : GNUNET_YES;
896} 896}
897 897
898 898