From: Florian Forster Date: Mon, 18 Jun 2007 14:56:00 +0000 (+0200) Subject: ping plugin: Actually check the uid, not the address of `getuid'. X-Git-Tag: collectd-4.0.3~6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=66844773fa108c3394ad1baf86a7735189f12a7d;p=collectd.git ping plugin: Actually check the uid, not the address of `getuid'. --- 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."); }