test/params_test.c: make construct_api_params() static
authorRichard Levitte <levitte@openssl.org>
Wed, 13 Mar 2019 12:56:46 +0000 (13:56 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 13 Mar 2019 12:56:46 +0000 (13:56 +0100)
With enough warning flags, compilers complain when a non-static
function hasn't been properly declared...

Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/8469)

test/params_test.c

index 09b6c50d71c6f644f75cfd529c87bd888a8608ab..c7fa1b16e76531defd703636a70268dd80fde7cf 100644 (file)
@@ -387,7 +387,7 @@ static const OSSL_PARAM static_api_params[] = {
  * The same array again, but constructed at run-time
  * This exercises the OSSL_PARAM constructor functions
  */
-OSSL_PARAM *construct_api_params(void)
+static OSSL_PARAM *construct_api_params(void)
 {
     size_t n = 0;
     static OSSL_PARAM params[10];