Fixed various compilation issues.

This commit is contained in:
pdw
2014-01-19 20:28:31 +00:00
parent 687861284d
commit ceabf7a47a
3 changed files with 3 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ dnl
dnl Boilerplate configuration dnl Boilerplate configuration
dnl dnl
AC_INIT([iftop], [1.0pre2], [pdw@ex-parrot.com], [http://www.ex-parrot.com/pdw/iftop/]) AC_INIT([iftop], [1.0pre4], [pdw@ex-parrot.com], [iftop], [http://www.ex-parrot.com/pdw/iftop/])
AC_CONFIG_AUX_DIR(config) AC_CONFIG_AUX_DIR(config)

View File

@@ -177,11 +177,11 @@ int in_filter_net(struct in_addr addr) {
return ret; return ret;
} }
int __inline__ ip_addr_match(struct in_addr addr) { static int __inline__ ip_addr_match(struct in_addr addr) {
return addr.s_addr == if_ip_addr.s_addr; return addr.s_addr == if_ip_addr.s_addr;
} }
int __inline__ ip6_addr_match(struct in6_addr *addr) { static int __inline__ ip6_addr_match(struct in6_addr *addr) {
return IN6_ARE_ADDR_EQUAL(addr, &if_ip6_addr); return IN6_ARE_ADDR_EQUAL(addr, &if_ip6_addr);
} }

View File

@@ -215,7 +215,6 @@ static void usage(FILE *fp) {
"copyright (c) 2002 Paul Warren <pdw@ex-parrot.com> and contributors\n" "copyright (c) 2002 Paul Warren <pdw@ex-parrot.com> and contributors\n"
); );
} }
#endif /* Obsolete code? */
void options_read_args(int argc, char **argv) { void options_read_args(int argc, char **argv) {
int opt; int opt;