From 3e53f67a651ebd9ebd2511517ed01b49d319aa26 Mon Sep 17 00:00:00 2001 From: Stephan Bosch Date: Fri, 16 Apr 2021 18:19:55 +0200 Subject: [PATCH] lib-ssl-iostream: test-iostream-ssl - Move bufsize_flush_callback(). --- src/lib-ssl-iostream/test-iostream-ssl.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib-ssl-iostream/test-iostream-ssl.c b/src/lib-ssl-iostream/test-iostream-ssl.c index 2d1f4dbbec..4ba3e3fc05 100644 --- a/src/lib-ssl-iostream/test-iostream-ssl.c +++ b/src/lib-ssl-iostream/test-iostream-ssl.c @@ -31,14 +31,6 @@ struct test_endpoint { struct test_endpoint *other; }; -static int bufsize_flush_callback(struct test_endpoint *ep) -{ - io_loop_stop(current_ioloop); - int ret = o_stream_flush(ep->output); - test_assert(ret >= 0); - return ret; -} - static int small_packets_flush_callback(struct test_endpoint *ep) { int ret = o_stream_flush(ep->output); @@ -71,6 +63,14 @@ static void handshake_input_callback(struct test_endpoint *ep) } } +static int bufsize_flush_callback(struct test_endpoint *ep) +{ + io_loop_stop(current_ioloop); + int ret = o_stream_flush(ep->output); + test_assert(ret >= 0); + return ret; +} + static void bufsize_input_callback(struct test_endpoint *ep) { const unsigned char *data; -- 2.47.3