From: Sami Kerola Date: Wed, 17 Aug 2016 19:52:02 +0000 (+0100) Subject: warnigns: add void to functions that do not take any arguments X-Git-Tag: v0.88~36^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a55d12411bfe0a55905446417b08201e09be36f;p=thirdparty%2Fmtr.git warnigns: add void to functions that do not take any arguments The use of function declarators with empty parentheses (not prototype-format parameter type declarators) is an obsolescent feature. --- diff --git a/curses.c b/curses.c index 541a2b4..4850589 100644 --- a/curses.c +++ b/curses.c @@ -505,7 +505,7 @@ void mtr_gen_scale(void) static char block_map[NUM_FACTORS]; -void mtr_curses_init() { +void mtr_curses_init(void) { int i; int block_split; diff --git a/net.c b/net.c index 53c3a94..a96058c 100644 --- a/net.c +++ b/net.c @@ -1525,7 +1525,7 @@ void net_reset(void) gettimeofday(&reset, NULL); } -int net_set_interfaceaddress_udp() +int net_set_interfaceaddress_udp(void) { #ifdef ENABLE_IPV6 struct sockaddr_storage name_struct;