From 7738cb723b1488a1c515d8ba0743e705469df64b Mon Sep 17 00:00:00 2001 From: Stephan Bosch Date: Fri, 16 Apr 2021 18:21:01 +0200 Subject: [PATCH] lib-ssl-iostream: test-iostream-ssl - Move small_packets_flush_callback(). --- src/lib-ssl-iostream/test-iostream-ssl.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lib-ssl-iostream/test-iostream-ssl.c b/src/lib-ssl-iostream/test-iostream-ssl.c index 4ba3e3fc05..1fb1a83a3e 100644 --- a/src/lib-ssl-iostream/test-iostream-ssl.c +++ b/src/lib-ssl-iostream/test-iostream-ssl.c @@ -31,13 +31,6 @@ struct test_endpoint { struct test_endpoint *other; }; -static int small_packets_flush_callback(struct test_endpoint *ep) -{ - int ret = o_stream_flush(ep->output); - test_assert(ret >= 0); - return ret; -} - static void send_output(struct test_endpoint *ep) { ssize_t amt = i_rand_limit(10)+1; @@ -84,6 +77,13 @@ static void bufsize_input_callback(struct test_endpoint *ep) i_stream_skip(ep->input, I_MIN(size, wanted)); } +static int small_packets_flush_callback(struct test_endpoint *ep) +{ + int ret = o_stream_flush(ep->output); + test_assert(ret >= 0); + return ret; +} + static void small_packets_input_callback(struct test_endpoint *ep) { const unsigned char *data; -- 2.47.3