From 69fecdd3d64aac4d19a2fa5777ea2b6c017fe9cf Mon Sep 17 00:00:00 2001 From: volker Date: Fri, 15 Jan 2010 21:44:04 +0000 Subject: Ticket 182 git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1079 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- plugin_cpuinfo.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'plugin_cpuinfo.c') diff --git a/plugin_cpuinfo.c b/plugin_cpuinfo.c index 8c87573..0669c7c 100644 --- a/plugin_cpuinfo.c +++ b/plugin_cpuinfo.c @@ -113,18 +113,18 @@ static int parse_cpuinfo(char *oid) size_t val_len; if (sysctlbyname(oid, NULL, &val_len, NULL, 0) != 0) { - error("Error %d by sysctl(%s): %s", errno, oid, strerror(errno)); - return -1; + error("Error %d by sysctl(%s): %s", errno, oid, strerror(errno)); + return -1; } if (val_len > sizeof(val_ret)) { - error("Error: Result of sysctl(%s) too big (%zd > %zd)!", oid, val_len, sizeof(val_ret)); - return -1; + error("Error: Result of sysctl(%s) too big (%zd > %zd)!", oid, val_len, sizeof(val_ret)); + return -1; } sysctlbyname(oid, &val_ret, &val_len, NULL, 0); if (val_len == sizeof(int)) { - /* we got an integer instead of a string */ - val = (int*)val_ret; - snprintf(val_ret, sizeof(val_ret), "%d", *val); + /* we got an integer instead of a string */ + val = (int *) val_ret; + snprintf(val_ret, sizeof(val_ret), "%d", *val); } hash_put(&CPUinfo, oid, val_ret); #endif -- cgit v1.2.3