diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2022-02-09 07:48:16 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2022-02-09 07:48:16 +0000 |
commit | e5a9220c6217b9923c1448c7956d0a6016b5e48c (patch) | |
tree | 952668d5e2f09ffa327806f4d5e118970a7b9037 /regress | |
parent | c250c25f37c6795c819b61db6126779f58d874c9 (diff) |
silence "function declaration isn't a prototype" warning by changing
int foo() to int foo(void)
Diffstat (limited to 'regress')
-rw-r--r-- | regress/lib/libc/explicit_bzero/explicit_bzero.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/regress/lib/libc/explicit_bzero/explicit_bzero.c b/regress/lib/libc/explicit_bzero/explicit_bzero.c index 9c0e917829f..65d7b04813f 100644 --- a/regress/lib/libc/explicit_bzero/explicit_bzero.c +++ b/regress/lib/libc/explicit_bzero/explicit_bzero.c @@ -1,4 +1,4 @@ -/* $OpenBSD: explicit_bzero.c,v 1.7 2021/03/27 11:17:58 bcook Exp $ */ +/* $OpenBSD: explicit_bzero.c,v 1.8 2022/02/09 07:48:15 tb Exp $ */ /* * Copyright (c) 2014 Google Inc. * @@ -139,7 +139,7 @@ count_secrets(const char *buf) } static char * -test_without_bzero() +test_without_bzero(void) { char buf[SECRETBYTES]; assert_on_stack(); @@ -150,7 +150,7 @@ test_without_bzero() } static char * -test_with_bzero() +test_with_bzero(void) { char buf[SECRETBYTES]; assert_on_stack(); @@ -161,14 +161,14 @@ test_with_bzero() return (res); } -static void +static void do_test_without_bzero(int signo) { char *buf = test_without_bzero(); ASSERT_GE(count_secrets(buf), 1); } -static void +static void do_test_with_bzero(int signo) { char *buf = test_with_bzero(); @@ -176,7 +176,7 @@ do_test_with_bzero(int signo) } int -main() +main(void) { setup_stack(); |