test/trace_api_test.c: fix gcc error on -Werror=strict-prototypes

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from https://github.com/openssl/openssl/pull/19277)
This commit is contained in:
Dr. David von Oheimb 2022-09-24 23:57:19 +02:00 committed by Dr. David von Oheimb
parent 9643ddb13a
commit 1fcd84c701

View File

@ -67,7 +67,7 @@ static int test_trace_categories(void)
}
#ifndef OPENSSL_NO_TRACE
static void put_trace_output()
static void put_trace_output(void)
{
OSSL_TRACE_BEGIN(TLS) {
BIO_printf(trc_out, "Hello World\n");
@ -75,7 +75,7 @@ static void put_trace_output()
} OSSL_TRACE_END(TLS);
}
static int test_trace_channel()
static int test_trace_channel(void)
{
static const char expected[] = "xyz-\nHello World\nGood Bye Universe\n-abc\n";
static const char expected_len = sizeof(expected) - 1;