summaryrefslogtreecommitdiff
path: root/src/regress/lib
diff options
context:
space:
mode:
authortb <>2020-09-18 14:38:04 +0000
committertb <>2020-09-18 14:38:04 +0000
commit68d2c35266936265b7d1b2fced83f9dde685f0d9 (patch)
treee474decb8d59a9680c555bef8645405b48af2ef1 /src/regress/lib
parent0ac3302058f13e8533c8351967d98eadbd53f706 (diff)
downloadopenbsd-68d2c35266936265b7d1b2fced83f9dde685f0d9.tar.gz
openbsd-68d2c35266936265b7d1b2fced83f9dde685f0d9.tar.bz2
openbsd-68d2c35266936265b7d1b2fced83f9dde685f0d9.zip
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)".
Diffstat (limited to 'src/regress/lib')
-rw-r--r--src/regress/lib/libcrypto/cms/cmstest.c6
1 files changed, 3 insertions, 3 deletions
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 @@
1/* $OpenBSD: cmstest.c,v 1.2 2019/11/04 12:31:59 jsing Exp $ */ 1/* $OpenBSD: cmstest.c,v 1.3 2020/09/18 14:38:04 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2019 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2019 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -109,7 +109,7 @@ hexdump(const unsigned char *buf, size_t len)
109} 109}
110 110
111static int 111static int
112test_cms_encrypt_decrypt() 112test_cms_encrypt_decrypt(void)
113{ 113{
114 STACK_OF(X509) *certs = NULL; 114 STACK_OF(X509) *certs = NULL;
115 CMS_ContentInfo *ci = NULL; 115 CMS_ContentInfo *ci = NULL;
@@ -198,7 +198,7 @@ test_cms_encrypt_decrypt()
198} 198}
199 199
200static int 200static int
201test_cms_sign_verify() 201test_cms_sign_verify(void)
202{ 202{
203 STACK_OF(X509) *certs = NULL; 203 STACK_OF(X509) *certs = NULL;
204 CMS_ContentInfo *ci = NULL; 204 CMS_ContentInfo *ci = NULL;