From 68d2c35266936265b7d1b2fced83f9dde685f0d9 Mon Sep 17 00:00:00 2001 From: tb <> Date: Fri, 18 Sep 2020 14:38:04 +0000 Subject: fix "warning: function declaration isn't a prototype" Make tests compile and pass on sparc64 with gcc 4.2.1 by properly declaring "static int foo()" as "static int foo(void)". --- src/regress/lib/libcrypto/cms/cmstest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/regress/lib/libcrypto/cms/cmstest.c b/src/regress/lib/libcrypto/cms/cmstest.c index 466583ecb2..87dfc8611a 100644 --- a/src/regress/lib/libcrypto/cms/cmstest.c +++ b/src/regress/lib/libcrypto/cms/cmstest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmstest.c,v 1.2 2019/11/04 12:31:59 jsing Exp $ */ +/* $OpenBSD: cmstest.c,v 1.3 2020/09/18 14:38:04 tb Exp $ */ /* * Copyright (c) 2019 Joel Sing * @@ -109,7 +109,7 @@ hexdump(const unsigned char *buf, size_t len) } static int -test_cms_encrypt_decrypt() +test_cms_encrypt_decrypt(void) { STACK_OF(X509) *certs = NULL; CMS_ContentInfo *ci = NULL; @@ -198,7 +198,7 @@ test_cms_encrypt_decrypt() } static int -test_cms_sign_verify() +test_cms_sign_verify(void) { STACK_OF(X509) *certs = NULL; CMS_ContentInfo *ci = NULL; -- cgit v1.2.3-55-g6feb