projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34d1c75
)
ping plugin: Actually check the uid, not the address of `getuid'.
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Mon, 18 Jun 2007 14:56:00 +0000
(16:56 +0200)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Mon, 18 Jun 2007 14:56:00 +0000
(16:56 +0200)
src/ping.c
patch
|
blob
|
history
diff --git
a/src/ping.c
b/src/ping.c
index
3c70066
..
27a65fa
100644
(file)
--- 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.");
}