diff options
author | 2020-09-18 14:38:04 +0000 | |
---|---|---|
committer | 2020-09-18 14:38:04 +0000 | |
commit | 8e87f5b53de4159cff4b31d0b3e002a20a04fd02 (patch) | |
tree | d2c8bed476eda414cc79c158d316372c4e9c994d | |
parent | Free buffer earlier to avoid confusing some compilers, GitHub issue (diff) | |
download | wireguard-openbsd-8e87f5b53de4159cff4b31d0b3e002a20a04fd02.tar.xz wireguard-openbsd-8e87f5b53de4159cff4b31d0b3e002a20a04fd02.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)".
-rw-r--r-- | regress/lib/libcrypto/cms/cmstest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/lib/libcrypto/cms/cmstest.c b/regress/lib/libcrypto/cms/cmstest.c index 466583ecb22..87dfc8611a1 100644 --- a/regress/lib/libcrypto/cms/cmstest.c +++ b/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 <jsing@openbsd.org> * @@ -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; |