diff options
author | Thomas Habets <thomas@habets.se> | 2012-03-26 00:13:29 +0100 |
---|---|---|
committer | Thomas Habets <thomas@habets.se> | 2012-03-26 00:13:29 +0100 |
commit | b37fb242289f82ec6fef4e4e26af7a5bfe963b52 (patch) | |
tree | 21196175599c5453631c45767e8286c0f6689431 /src | |
parent | a4d2ec3eae196632aed05e4b23ae5d26c8725bb6 (diff) | |
download | arping-b37fb242289f82ec6fef4e4e26af7a5bfe963b52.tar.gz |
Fix warnings reported by clang.
Diffstat (limited to 'src')
-rw-r--r-- | src/arping.c | 3 | ||||
-rw-r--r-- | src/arping.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/arping.c b/src/arping.c index ea997e1..2264b44 100644 --- a/src/arping.c +++ b/src/arping.c @@ -37,6 +37,7 @@ #include <stdio.h> #include <stdlib.h> +#include <math.h> #include <poll.h> #if HAVE_UNISTD_H @@ -88,6 +89,8 @@ #endif #include <pcap.h> +#include "arping.h" + #ifndef ETH_ALEN #define ETH_ALEN 6 #endif diff --git a/src/arping.h b/src/arping.h index b78e4a7..7d30d2e 100644 --- a/src/arping.h +++ b/src/arping.h @@ -25,8 +25,8 @@ #include <inttypes.h> #endif -extern uint32_t srcip,dstip; extern int verbose; +void do_signal_init(); void do_libnet_init(const char *ifname); void sigint(int); const char *arping_lookupdev_default(uint32_t srcip, uint32_t dstip, |