Fixed various compilation issues.
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
4
iftop.c
4
iftop.c
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user