]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-ssl-iostream: test-iostream-ssl - Move small_packets_flush_callback().
authorStephan Bosch <stephan.bosch@open-xchange.com>
Fri, 16 Apr 2021 16:21:01 +0000 (18:21 +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 4ba3e3fc05ee443f0b2c028048eb08e1b96d1e35..1fb1a83a3e3e2b5908c51352b3f4a1f7b77e5cc0 100644 (file)
@@ -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;