diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-06 20:55:28 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-06 20:55:28 +0000 |
commit | 61c39c60565b386e0e12ea669556b030e8cd7180 (patch) | |
tree | 59109aeab8297bdc996faca8c4e38ec7426c36cf /src/util/connection.c | |
parent | 780eb09dd8040ecf8649d40ddf8314464e0fc48e (diff) | |
download | gnunet-61c39c60565b386e0e12ea669556b030e8cd7180.tar.gz gnunet-61c39c60565b386e0e12ea669556b030e8cd7180.zip |
-remove trailing whitespace
Diffstat (limited to 'src/util/connection.c')
-rw-r--r-- | src/util/connection.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/util/connection.c b/src/util/connection.c index e90fa9f51..a429f2f7e 100644 --- a/src/util/connection.c +++ b/src/util/connection.c | |||
@@ -433,7 +433,7 @@ GNUNET_CONNECTION_create_from_accept (GNUNET_CONNECTION_AccessCheck access, | |||
433 | connection->addr = uaddr; | 433 | connection->addr = uaddr; |
434 | connection->addrlen = addrlen; | 434 | connection->addrlen = addrlen; |
435 | connection->sock = sock; | 435 | connection->sock = sock; |
436 | LOG (GNUNET_ERROR_TYPE_INFO, | 436 | LOG (GNUNET_ERROR_TYPE_INFO, |
437 | _("Accepting connection from `%s': %p\n"), | 437 | _("Accepting connection from `%s': %p\n"), |
438 | GNUNET_a2s (uaddr, addrlen), connection); | 438 | GNUNET_a2s (uaddr, addrlen), connection); |
439 | return connection; | 439 | return connection; |
@@ -473,7 +473,7 @@ signal_receive_error (struct GNUNET_CONNECTION_Handle *connection, int errcode) | |||
473 | GNUNET_CONNECTION_Receiver receiver; | 473 | GNUNET_CONNECTION_Receiver receiver; |
474 | 474 | ||
475 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 475 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
476 | "Receive encounters error (%s), connection closed (%p)\n", | 476 | "Receive encounters error (%s), connection closed (%p)\n", |
477 | STRERROR (errcode), | 477 | STRERROR (errcode), |
478 | connection); | 478 | connection); |
479 | GNUNET_assert (NULL != (receiver = connection->receiver)); | 479 | GNUNET_assert (NULL != (receiver = connection->receiver)); |
@@ -608,14 +608,14 @@ receive_ready (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc); | |||
608 | static void | 608 | static void |
609 | connect_success_continuation (struct GNUNET_CONNECTION_Handle *connection) | 609 | connect_success_continuation (struct GNUNET_CONNECTION_Handle *connection) |
610 | { | 610 | { |
611 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 611 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
612 | "Connection to `%s' succeeded! (%p)\n", | 612 | "Connection to `%s' succeeded! (%p)\n", |
613 | GNUNET_a2s (connection->addr, connection->addrlen), connection); | 613 | GNUNET_a2s (connection->addr, connection->addrlen), connection); |
614 | /* trigger jobs that waited for the connection */ | 614 | /* trigger jobs that waited for the connection */ |
615 | if (NULL != connection->receiver) | 615 | if (NULL != connection->receiver) |
616 | { | 616 | { |
617 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 617 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
618 | "Connection succeeded, starting with receiving data (%p)\n", | 618 | "Connection succeeded, starting with receiving data (%p)\n", |
619 | connection); | 619 | connection); |
620 | GNUNET_assert (GNUNET_SCHEDULER_NO_TASK == connection->read_task); | 620 | GNUNET_assert (GNUNET_SCHEDULER_NO_TASK == connection->read_task); |
621 | connection->read_task = | 621 | connection->read_task = |
@@ -989,10 +989,10 @@ GNUNET_CONNECTION_destroy (struct GNUNET_CONNECTION_Handle *connection) | |||
989 | if ( (NULL != connection->sock) && | 989 | if ( (NULL != connection->sock) && |
990 | (GNUNET_YES != connection->persist) ) | 990 | (GNUNET_YES != connection->persist) ) |
991 | { | 991 | { |
992 | if ((GNUNET_YES != GNUNET_NETWORK_socket_shutdown (connection->sock, SHUT_RDWR)) && | 992 | if ((GNUNET_YES != GNUNET_NETWORK_socket_shutdown (connection->sock, SHUT_RDWR)) && |
993 | (ENOTCONN != errno) && | 993 | (ENOTCONN != errno) && |
994 | (ECONNRESET != errno) ) | 994 | (ECONNRESET != errno) ) |
995 | LOG_STRERROR (GNUNET_ERROR_TYPE_WARNING, "shutdown"); | 995 | LOG_STRERROR (GNUNET_ERROR_TYPE_WARNING, "shutdown"); |
996 | } | 996 | } |
997 | if (NULL != connection->sock) | 997 | if (NULL != connection->sock) |
998 | { | 998 | { |
@@ -1286,7 +1286,7 @@ transmit_ready (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
1286 | return; | 1286 | return; |
1287 | } | 1287 | } |
1288 | GNUNET_assert (NULL != connection->sock); | 1288 | GNUNET_assert (NULL != connection->sock); |
1289 | if (NULL == tc->write_ready) | 1289 | if (NULL == tc->write_ready) |
1290 | { | 1290 | { |
1291 | /* special circumstances (in particular, PREREQ_DONE after | 1291 | /* special circumstances (in particular, PREREQ_DONE after |
1292 | * connect): not yet ready to write, but no "fatal" error either. | 1292 | * connect): not yet ready to write, but no "fatal" error either. |
@@ -1400,7 +1400,7 @@ GNUNET_CONNECTION_notify_transmit_ready (struct GNUNET_CONNECTION_Handle *connec | |||
1400 | connection->nth.notify_size = size; | 1400 | connection->nth.notify_size = size; |
1401 | connection->nth.transmit_timeout = GNUNET_TIME_relative_to_absolute (timeout); | 1401 | connection->nth.transmit_timeout = GNUNET_TIME_relative_to_absolute (timeout); |
1402 | GNUNET_assert (GNUNET_SCHEDULER_NO_TASK == connection->nth.timeout_task); | 1402 | GNUNET_assert (GNUNET_SCHEDULER_NO_TASK == connection->nth.timeout_task); |
1403 | if ((NULL == connection->sock) && | 1403 | if ((NULL == connection->sock) && |
1404 | (NULL == connection->ap_head) && | 1404 | (NULL == connection->ap_head) && |
1405 | (NULL == connection->dns_active)) | 1405 | (NULL == connection->dns_active)) |
1406 | { | 1406 | { |