diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-12-09 14:52:22 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-12-09 14:52:22 +0000 |
commit | 219145ed3c786dd64faae300e873e291bd873b94 (patch) | |
tree | 395d6134a165c21f63a4e82645a2b6b833fd8056 /src/transport/gnunet-service-transport.c | |
parent | 1240b4fd34967bf9b10d06d38247d7a7033e6b3e (diff) | |
download | gnunet-219145ed3c786dd64faae300e873e291bd873b94.tar.gz gnunet-219145ed3c786dd64faae300e873e291bd873b94.zip |
-doxygen, indentation fixes
Diffstat (limited to 'src/transport/gnunet-service-transport.c')
-rw-r--r-- | src/transport/gnunet-service-transport.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index 6a3c2a17c..50faeae89 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c | |||
@@ -150,15 +150,12 @@ process_payload (const struct GNUNET_PeerIdentity *peer, | |||
150 | 150 | ||
151 | do_forward = GNUNET_SYSERR; | 151 | do_forward = GNUNET_SYSERR; |
152 | ret = GST_neighbours_calculate_receive_delay (peer, msg_size, &do_forward); | 152 | ret = GST_neighbours_calculate_receive_delay (peer, msg_size, &do_forward); |
153 | |||
154 | if (! GST_neighbours_test_connected (peer)) | 153 | if (! GST_neighbours_test_connected (peer)) |
155 | { | 154 | { |
156 | |||
157 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 155 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
158 | "Discarded %u bytes type %u payload from peer `%s'\n", | 156 | "Discarded %u bytes type %u payload from peer `%s'\n", |
159 | msg_size, | 157 | msg_size, |
160 | ntohs (message->type), GNUNET_i2s (peer)); | 158 | ntohs (message->type), GNUNET_i2s (peer)); |
161 | |||
162 | GNUNET_STATISTICS_update (GST_stats, | 159 | GNUNET_STATISTICS_update (GST_stats, |
163 | gettext_noop | 160 | gettext_noop |
164 | ("# bytes payload discarded due to not connected peer"), | 161 | ("# bytes payload discarded due to not connected peer"), |
@@ -175,9 +172,7 @@ process_payload (const struct GNUNET_PeerIdentity *peer, | |||
175 | im->header.type = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_RECV); | 172 | im->header.type = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_RECV); |
176 | im->peer = *peer; | 173 | im->peer = *peer; |
177 | memcpy (&im[1], message, ntohs (message->size)); | 174 | memcpy (&im[1], message, ntohs (message->size)); |
178 | |||
179 | GST_clients_broadcast (&im->header, GNUNET_YES); | 175 | GST_clients_broadcast (&im->header, GNUNET_YES); |
180 | |||
181 | return ret; | 176 | return ret; |
182 | } | 177 | } |
183 | 178 | ||
@@ -654,7 +649,6 @@ neighbours_connect_notification (void *cls, | |||
654 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 649 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
655 | "We are now connected to peer `%s' and %u peers in total\n", | 650 | "We are now connected to peer `%s' and %u peers in total\n", |
656 | GNUNET_i2s (peer), connections); | 651 | GNUNET_i2s (peer), connections); |
657 | |||
658 | connect_msg->header.size = htons (sizeof (buf)); | 652 | connect_msg->header.size = htons (sizeof (buf)); |
659 | connect_msg->header.type = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_CONNECT); | 653 | connect_msg->header.type = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_CONNECT); |
660 | connect_msg->id = *peer; | 654 | connect_msg->id = *peer; |