From bbd258a64de3134e890bf9e3207fd20741dfe015 Mon Sep 17 00:00:00 2001 From: octo Date: Wed, 7 Jun 2006 17:11:15 +0000 Subject: [PATCH] freebsd branch: memory plugin: Use `errno', not the return value of `sysctlbyname', as argument to `strerror'. --- src/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); -- 2.30.2