summaryrefslogtreecommitdiff
path: root/tests/dtls-rehandshake-anon.c
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2022-12-18 08:05:05 +0900
committerDaiki Ueno <ueno@gnu.org>2022-12-18 08:05:05 +0900
commit379a103f545f3af606a888e43c7eb27bcdbcf5de (patch)
tree6fa9fa759faf5ef1eed7f2c3240548019e01420d /tests/dtls-rehandshake-anon.c
parent1caaf563450e11d09f0dcb501ddc3f025e23cdf0 (diff)
downloadgnutls-379a103f545f3af606a888e43c7eb27bcdbcf5de.tar.gz
build: avoid using implicit int to adhere to C99
Otherwise -Wstrict-prototypes now emits the following warnings: mini-dtls-large.c:30:5: error: function declaration isn't a prototype [-Werror=strict-prototypes] 30 | int main() | ^~~~ mini-dtls-large.c: In function 'main': mini-dtls-large.c:30:5: error: old-style function definition [-Werror=old-style-definition] cc1: all warnings being treated as errors Signed-off-by: Daiki Ueno <ueno@gnu.org>
Diffstat (limited to 'tests/dtls-rehandshake-anon.c')
-rw-r--r--tests/dtls-rehandshake-anon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/dtls-rehandshake-anon.c b/tests/dtls-rehandshake-anon.c
index f281f5d3fa..2d3566f2dc 100644
--- a/tests/dtls-rehandshake-anon.c
+++ b/tests/dtls-rehandshake-anon.c
@@ -29,7 +29,7 @@
#if defined(_WIN32)
-int main()
+int main(void)
{
exit(77);
}