aboutsummaryrefslogtreecommitdiffstats
path: root/pingu_host.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-09-09 13:37:50 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2011-09-09 13:37:50 +0200
commitf8ea0da3d82ec64ac88a33631ca259a091111a41 (patch)
tree08bfffe564a2299a7c6276e6c633ecc4363f09af /pingu_host.c
parente7828c0ba51dc8819cb00de378828ef549d1f190 (diff)
downloadpingu-f8ea0da3d82ec64ac88a33631ca259a091111a41.tar.bz2
pingu-f8ea0da3d82ec64ac88a33631ca259a091111a41.tar.xz
pingu_ping: cleanup. Use constant to indicate if we ignore error or not
This makes code cleaner and easier to read.
Diffstat (limited to 'pingu_host.c')
-rw-r--r--pingu_host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pingu_host.c b/pingu_host.c
index 3630161..5fa5aaf 100644
--- a/pingu_host.c
+++ b/pingu_host.c
@@ -72,7 +72,7 @@ int pingu_host_verify_status(struct ev_loop *loop, struct pingu_host *host)
} else if (host->burst.pings_sent >= host->max_retries) {
pingu_host_set_status(host, PINGU_HOST_STATUS_OFFLINE);
} else
- pingu_ping_send(loop, host, 1);
+ pingu_ping_send(loop, host, PINGU_PING_SET_STATUS_ON_ERROR);
return 0;
}