Use (void) for empty parameter lists in C.

Because `()` means "some unknown number of parameters".
This commit is contained in:
iphydf 2018-09-08 07:29:03 +00:00
parent 08cc4184a1
commit d9541d542c
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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