Skip to content

Commit a2210d0

Browse files
author
tb
committed
silence "function declaration isn't a prototype" warning by changing
int foo() to int foo(void)
1 parent 9434cc6 commit a2210d0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/regress/lib/libc/explicit_bzero/explicit_bzero.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

141141
static 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

152152
static 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
165165
do_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
172172
do_test_with_bzero(int signo)
173173
{
174174
char *buf = test_with_bzero();
175175
ASSERT_EQ(count_secrets(buf), 0);
176176
}
177177

178178
int
179-
main()
179+
main(void)
180180
{
181181
setup_stack();
182182

0 commit comments

Comments
 (0)