diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-09-08 07:29:03 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-09-08 10:59:30 +0000 |
commit | d9541d542cae6838114123c8baa19e26f980e575 (patch) | |
tree | 070431348335554c5696c152651fab183763d2d9 /auto_tests | |
parent | 08cc4184a167759e7dd7dcd334003d6257241a45 (diff) |
Use `(void)` for empty parameter lists in C.
Because `()` means "some unknown number of parameters".
Diffstat (limited to 'auto_tests')
-rw-r--r-- | auto_tests/TCP_test.c | 2 | ||||
-rw-r--r-- | auto_tests/dht_test.c | 2 | ||||
-rw-r--r-- | 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 @@ | |||
23 | #define net_family_ipv6 net_family_ipv4 | 23 | #define net_family_ipv6 net_family_ipv4 |
24 | #endif | 24 | #endif |
25 | 25 | ||
26 | static inline IP get_loopback() | 26 | static inline IP get_loopback(void) |
27 | { | 27 | { |
28 | IP ip; | 28 | IP ip; |
29 | #if USE_IPV6 | 29 | #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; | |||
19 | #define USE_IPV6 1 | 19 | #define USE_IPV6 1 |
20 | #endif | 20 | #endif |
21 | 21 | ||
22 | static inline IP get_loopback() | 22 | static inline IP get_loopback(void) |
23 | { | 23 | { |
24 | IP ip; | 24 | IP ip; |
25 | #if USE_IPV6 | 25 | #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 @@ | |||
17 | #define USE_IPV6 1 | 17 | #define USE_IPV6 1 |
18 | #endif | 18 | #endif |
19 | 19 | ||
20 | static inline IP get_loopback() | 20 | static inline IP get_loopback(void) |
21 | { | 21 | { |
22 | IP ip; | 22 | IP ip; |
23 | #if USE_IPV6 | 23 | #if USE_IPV6 |