X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fping.c;h=27a65faafc36f23a14118ac61a04353acc48704f;hb=d0b8094f18fa3d5073b4c8fbfca160376e6b87ea;hp=3c700668ddef5e11be1c05aff34faa88a1633737;hpb=721f8d81910c71154aba9ff8d243db52bfb584ed;p=collectd.git 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."); }