summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.se>2012-03-13 10:19:48 +0000
committerThomas Habets <thomas@habets.se>2012-03-13 10:23:05 +0000
commita4d2ec3eae196632aed05e4b23ae5d26c8725bb6 (patch)
tree706694d75be0fd2d6cb23edb72f7fa9f539825a8 /src
parent5d665ee968cedea63ac0f4c96e7b62fe0a5442ec (diff)
downloadarping-a4d2ec3eae196632aed05e4b23ae5d26c8725bb6.tar.gz
Using -1 is the same as 0, except older libpcap left 0 undefined.
Diffstat (limited to 'src')
-rw-r--r--src/arping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arping.c b/src/arping.c
index 59881e3..ea997e1 100644
--- a/src/arping.c
+++ b/src/arping.c
@@ -890,7 +890,7 @@ ping_recv(pcap_t *pcap, uint32_t packetwait, pcap_handler func)
if (trydispatch) {
int ret;
- if (1 != (ret = pcap_dispatch(pcap, 0,
+ if (1 != (ret = pcap_dispatch(pcap, -1,
func,
NULL))) {
/* rest, so we don't take 100% CPU... mostly