diff options
Diffstat (limited to 'src/util/client.c')
-rw-r--r-- | src/util/client.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/util/client.c b/src/util/client.c index 59cd26ad1..2b866e6f8 100644 --- a/src/util/client.c +++ b/src/util/client.c | |||
@@ -452,8 +452,8 @@ check_complete (struct GNUNET_CLIENT_Connection *conn) | |||
452 | { | 452 | { |
453 | if ((conn->received_pos >= sizeof (struct GNUNET_MessageHeader)) && | 453 | if ((conn->received_pos >= sizeof (struct GNUNET_MessageHeader)) && |
454 | (conn->received_pos >= | 454 | (conn->received_pos >= |
455 | ntohs (((const struct GNUNET_MessageHeader *) conn-> | 455 | ntohs (((const struct GNUNET_MessageHeader *) conn->received_buf)-> |
456 | received_buf)->size))) | 456 | size))) |
457 | conn->msg_complete = GNUNET_YES; | 457 | conn->msg_complete = GNUNET_YES; |
458 | } | 458 | } |
459 | 459 | ||
@@ -679,8 +679,8 @@ write_test (void *cls, size_t size, void *buf) | |||
679 | msg->type = htons (GNUNET_MESSAGE_TYPE_TEST); | 679 | msg->type = htons (GNUNET_MESSAGE_TYPE_TEST); |
680 | msg->size = htons (sizeof (struct GNUNET_MessageHeader)); | 680 | msg->size = htons (sizeof (struct GNUNET_MessageHeader)); |
681 | GNUNET_CLIENT_receive (conn, &confirm_handler, conn, | 681 | GNUNET_CLIENT_receive (conn, &confirm_handler, conn, |
682 | GNUNET_TIME_absolute_get_remaining (conn-> | 682 | GNUNET_TIME_absolute_get_remaining |
683 | test_deadline)); | 683 | (conn->test_deadline)); |
684 | return sizeof (struct GNUNET_MessageHeader); | 684 | return sizeof (struct GNUNET_MessageHeader); |
685 | } | 685 | } |
686 | 686 | ||
@@ -902,7 +902,8 @@ GNUNET_CLIENT_service_test (const char *service, | |||
902 | * @param buf where to write them | 902 | * @param buf where to write them |
903 | * @return number of bytes written to buf | 903 | * @return number of bytes written to buf |
904 | */ | 904 | */ |
905 | static size_t client_notify (void *cls, size_t size, void *buf); | 905 | static size_t |
906 | client_notify (void *cls, size_t size, void *buf); | ||
906 | 907 | ||
907 | 908 | ||
908 | /** | 909 | /** |