Fix minor type warnings and risk of memory leak in testutil/driver.c
[openssl.git] / test / testutil / output_helpers.c
1 /*
2  * Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
3  *
4  * Licensed under the OpenSSL license (the "License").  You may not use
5  * this file except in compliance with the License.  You can obtain a copy
6  * in the file LICENSE in the source distribution or at
7  * https://www.openssl.org/source/license.html
8  */
9
10 #include "output.h"
11
12 int test_printf_stdout(const char *fmt, ...)
13 {
14     va_list ap;
15     int ret;
16
17     va_start(ap, fmt);
18     ret = test_vprintf_stdout(fmt, ap);
19     va_end(ap);
20
21     return ret;
22 }
23
24 int test_printf_stderr(const char *fmt, ...)
25 {
26     va_list ap;
27     int ret;
28
29     va_start(ap, fmt);
30     ret = test_vprintf_stderr(fmt, ap);
31     va_end(ap);
32
33     return ret;
34 }