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 $ */
2
2
/*
3
3
* Copyright (c) 2014 Google Inc.
4
4
*
@@ -139,7 +139,7 @@ count_secrets(const char *buf)
139
139
}
140
140
141
141
static char *
142
- test_without_bzero ()
142
+ test_without_bzero (void )
143
143
{
144
144
char buf [SECRETBYTES ];
145
145
assert_on_stack ();
@@ -150,7 +150,7 @@ test_without_bzero()
150
150
}
151
151
152
152
static char *
153
- test_with_bzero ()
153
+ test_with_bzero (void )
154
154
{
155
155
char buf [SECRETBYTES ];
156
156
assert_on_stack ();
@@ -161,22 +161,22 @@ test_with_bzero()
161
161
return (res );
162
162
}
163
163
164
- static void
164
+ static void
165
165
do_test_without_bzero (int signo )
166
166
{
167
167
char * buf = test_without_bzero ();
168
168
ASSERT_GE (count_secrets (buf ), 1 );
169
169
}
170
170
171
- static void
171
+ static void
172
172
do_test_with_bzero (int signo )
173
173
{
174
174
char * buf = test_with_bzero ();
175
175
ASSERT_EQ (count_secrets (buf ), 0 );
176
176
}
177
177
178
178
int
179
- main ()
179
+ main (void )
180
180
{
181
181
setup_stack ();
182
182
You can’t perform that action at this time.
0 commit comments