diff options
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/gnunet-service-transport_neighbours.c | 4 | ||||
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c index 8d3e47f94..2bf07bcd7 100644 --- a/src/transport/gnunet-service-transport_neighbours.c +++ b/src/transport/gnunet-service-transport_neighbours.c | |||
@@ -1137,9 +1137,9 @@ disconnect_neighbour (struct NeighbourMapEntry *n) | |||
1137 | * our own receive rate and informs the neighbour about | 1137 | * our own receive rate and informs the neighbour about |
1138 | * the new quota. | 1138 | * the new quota. |
1139 | * | 1139 | * |
1140 | * @param n neighbour entry to change qutoa for | 1140 | * @param n neighbour entry to change quota for |
1141 | * @param quota new quota | 1141 | * @param quota new quota |
1142 | * @return #GNUNET_YES if @a n is still valid, @GNUNET_NO if | 1142 | * @return #GNUNET_YES if @a n is still valid, #GNUNET_NO if |
1143 | * @a n was freed | 1143 | * @a n was freed |
1144 | */ | 1144 | */ |
1145 | static int | 1145 | static int |
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index c5d6e6d34..8b00543c3 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c | |||
@@ -3351,9 +3351,10 @@ handle_tcp_data (void *cls, | |||
3351 | void *vaddr = NULL; | 3351 | void *vaddr = NULL; |
3352 | size_t alen; | 3352 | size_t alen; |
3353 | 3353 | ||
3354 | GNUNET_SERVER_client_get_address (client, | 3354 | GNUNET_assert (GNUNET_OK == |
3355 | &vaddr, | 3355 | GNUNET_SERVER_client_get_address (client, |
3356 | &alen); | 3356 | &vaddr, |
3357 | &alen)); | ||
3357 | LOG (GNUNET_ERROR_TYPE_ERROR, | 3358 | LOG (GNUNET_ERROR_TYPE_ERROR, |
3358 | "Received unexpected %u bytes of type %u from `%s'\n", | 3359 | "Received unexpected %u bytes of type %u from `%s'\n", |
3359 | (unsigned int) ntohs (message->size), | 3360 | (unsigned int) ntohs (message->size), |