From e5a9220c6217b9923c1448c7956d0a6016b5e48c Mon Sep 17 00:00:00 2001 From: Theo Buehler Date: Wed, 9 Feb 2022 07:48:16 +0000 Subject: silence "function declaration isn't a prototype" warning by changing int foo() to int foo(void) --- regress/lib/libc/explicit_bzero/explicit_bzero.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'regress') 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(); -- cgit v1.2.3