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 3c70066..27a65fa 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.");
        }