From: octo Date: Wed, 7 Jun 2006 17:11:15 +0000 (+0000) Subject: freebsd branch: memory plugin: Use `errno', not the return value of `sysctlbyname... X-Git-Tag: svn-trunk~2^2~3 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=bbd258a64de3134e890bf9e3207fd20741dfe015;p=collectd.git freebsd branch: memory plugin: Use `errno', not the return value of `sysctlbyname', as argument to `strerror'. --- diff --git a/src/memory.c b/src/memory.c index a6fc1abf..01bd5272 100644 --- a/src/memory.c +++ b/src/memory.c @@ -217,7 +217,7 @@ static void memory_read (void) NULL, 0)) < 0) { syslog (LOG_ERR, "memory plugin: sysctlbyname (%s): %s", - sysctl_keys[i], strerror (status)); + sysctl_keys[i], strerror (errno)); return; } DBG ("%26s: %6i", sysctl_keys[i], sysctl_vals[i]);