From f8ea0da3d82ec64ac88a33631ca259a091111a41 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 9 Sep 2011 13:37:50 +0200 Subject: pingu_ping: cleanup. Use constant to indicate if we ignore error or not This makes code cleaner and easier to read. --- pingu_host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pingu_host.c') 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; } -- cgit v1.2.3