From: Stephan Bosch Date: Fri, 16 Apr 2021 16:21:01 +0000 (+0200) Subject: lib-ssl-iostream: test-iostream-ssl - Move small_packets_flush_callback(). X-Git-Tag: 2.3.18~283 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7738cb723b1488a1c515d8ba0743e705469df64b;p=thirdparty%2Fdovecot%2Fcore.git lib-ssl-iostream: test-iostream-ssl - Move small_packets_flush_callback(). --- 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;