Code

ping plugin: Actually check the uid, not the address of `getuid'.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 18 Jun 2007 14:56:00 +0000 (16:56 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 18 Jun 2007 14:56:00 +0000 (16:56 +0200)
src/ping.c

index 3c700668ddef5e11be1c05aff34faa88a1633737..27a65faafc36f23a14118ac61a04353acc48704f 100644 (file)
@@ -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.");
        }