From d9541d542cae6838114123c8baa19e26f980e575 Mon Sep 17 00:00:00 2001 From: iphydf Date: Sat, 8 Sep 2018 07:29:03 +0000 Subject: [PATCH] Use `(void)` for empty parameter lists in C. Because `()` means "some unknown number of parameters". --- auto_tests/TCP_test.c | 2 +- auto_tests/dht_test.c | 2 +- auto_tests/onion_test.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/auto_tests/TCP_test.c b/auto_tests/TCP_test.c index 3c5d56b9..fe699947 100644 --- a/auto_tests/TCP_test.c +++ b/auto_tests/TCP_test.c @@ -23,7 +23,7 @@ #define net_family_ipv6 net_family_ipv4 #endif -static inline IP get_loopback() +static inline IP get_loopback(void) { IP ip; #if USE_IPV6 diff --git a/auto_tests/dht_test.c b/auto_tests/dht_test.c index f9c09dd5..c8aaa18c 100644 --- a/auto_tests/dht_test.c +++ b/auto_tests/dht_test.c @@ -19,7 +19,7 @@ static bool enable_broken_tests = false; #define USE_IPV6 1 #endif -static inline IP get_loopback() +static inline IP get_loopback(void) { IP ip; #if USE_IPV6 diff --git a/auto_tests/onion_test.c b/auto_tests/onion_test.c index 6cd06494..20c7ff86 100644 --- a/auto_tests/onion_test.c +++ b/auto_tests/onion_test.c @@ -17,7 +17,7 @@ #define USE_IPV6 1 #endif -static inline IP get_loopback() +static inline IP get_loopback(void) { IP ip; #if USE_IPV6