]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-ssl-iostream: test-iostream-ssl - Move bufsize_flush_callback().
authorStephan Bosch <stephan.bosch@open-xchange.com>
Fri, 16 Apr 2021 16:19:55 +0000 (18:19 +0200)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Thu, 30 Sep 2021 17:08:11 +0000 (17:08 +0000)
src/lib-ssl-iostream/test-iostream-ssl.c

index 2d1f4dbbec1fd3f9ee2c96d78977e7cb7c7e6b22..4ba3e3fc05ee443f0b2c028048eb08e1b96d1e35 100644 (file)
@@ -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;