diff options
author | tb <> | 2020-09-18 14:38:04 +0000 |
---|---|---|
committer | tb <> | 2020-09-18 14:38:04 +0000 |
commit | 68d2c35266936265b7d1b2fced83f9dde685f0d9 (patch) | |
tree | e474decb8d59a9680c555bef8645405b48af2ef1 /src/regress/lib | |
parent | 0ac3302058f13e8533c8351967d98eadbd53f706 (diff) | |
download | openbsd-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.c | 6 |
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 | ||
111 | static int | 111 | static int |
112 | test_cms_encrypt_decrypt() | 112 | test_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 | ||
200 | static int | 200 | static int |
201 | test_cms_sign_verify() | 201 | test_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; |