From 66844773fa108c3394ad1baf86a7735189f12a7d Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 18 Jun 2007 16:56:00 +0200 Subject: [PATCH] ping plugin: Actually check the uid, not the address of `getuid'. --- src/ping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ping.c b/src/ping.c index 3c700668..27a65faa 100644 --- a/src/ping.c +++ b/src/ping.c @@ -241,7 +241,7 @@ static int ping_read (void) number_of_hosts++; } - if ((number_of_hosts == 0) && (getuid != 0)) + if ((number_of_hosts == 0) && (getuid () != 0)) { ERROR ("ping plugin: All hosts failed. Try starting collectd as root."); } -- 2.11.0