File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/regress/lib/libc/explicit_bzero Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1- /* $OpenBSD: explicit_bzero.c,v 1.7 2021/03/27 11:17:58 bcook Exp $ */
1+ /* $OpenBSD: explicit_bzero.c,v 1.8 2022/02/09 07:48:15 tb Exp $ */
22/*
33 * Copyright (c) 2014 Google Inc.
44 *
@@ -139,7 +139,7 @@ count_secrets(const char *buf)
139139}
140140
141141static char *
142- test_without_bzero ()
142+ test_without_bzero (void )
143143{
144144 char buf [SECRETBYTES ];
145145 assert_on_stack ();
@@ -150,7 +150,7 @@ test_without_bzero()
150150}
151151
152152static char *
153- test_with_bzero ()
153+ test_with_bzero (void )
154154{
155155 char buf [SECRETBYTES ];
156156 assert_on_stack ();
@@ -161,22 +161,22 @@ test_with_bzero()
161161 return (res );
162162}
163163
164- static void
164+ static void
165165do_test_without_bzero (int signo )
166166{
167167 char * buf = test_without_bzero ();
168168 ASSERT_GE (count_secrets (buf ), 1 );
169169}
170170
171- static void
171+ static void
172172do_test_with_bzero (int signo )
173173{
174174 char * buf = test_with_bzero ();
175175 ASSERT_EQ (count_secrets (buf ), 0 );
176176}
177177
178178int
179- main ()
179+ main (void )
180180{
181181 setup_stack ();
182182
You can’t perform that action at this time.
0 commit comments