From 08218f219f9b29dd7e50773a8b70fc70991cda67 Mon Sep 17 00:00:00 2001 From: tb Date: Wed, 9 Feb 2022 07:48:15 +0000 Subject: [PATCH] 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(-) 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(); -- 2.20.1