From 8fe8d2bffac26ae35c1a3fdeadddcfea1dbc9b65 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20V=C3=B6lkel?= Date: Wed, 9 Dec 2009 19:42:40 +0100 Subject: [PATCH] ping plugin: Cleanup used variable names. Signed-off-by: Florian Forster --- src/ping.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ping.c b/src/ping.c index 92783800..e1540c37 100644 --- a/src/ping.c +++ b/src/ping.c @@ -149,7 +149,7 @@ static void *ping_thread (void *arg) /* {{{ */ struct timespec ts_int; hostlist_t *hl; - int status; + int count; pthread_mutex_lock (&ping_lock); @@ -178,18 +178,18 @@ static void *ping_thread (void *arg) /* {{{ */ ping_setopt (pingobj, PING_OPT_TTL, (void *) &ping_ttl); /* Add all the hosts to the ping object. */ - status = 0; + count = 0; for (hl = hostlist_head; hl != NULL; hl = hl->next) { - int tmp_status; - tmp_status = ping_host_add (pingobj, hl->host); - if (tmp_status != 0) + int status; + status = ping_host_add (pingobj, hl->host); + if (status != 0) WARNING ("ping plugin: ping_host_add (%s) failed.", hl->host); else - status++; + count++; } - if (status == 0) + if (count == 0) { ERROR ("ping plugin: No host could be added to ping object. Giving up."); ping_thread_error = 1; -- 2.11.0