aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/arch/linux/common/uptime.h
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2009-03-29 10:38:31 -0300
committerLeandro A. F. Pereira <leandro@hardinfo.org>2009-03-29 10:38:31 -0300
commit2d0724c17ece708e93126345fb24f4683f51ed17 (patch)
tree68c08cadca9193e736dd36b65d835db0335f8af8 /hardinfo2/arch/linux/common/uptime.h
parent43b9f535ee40022e41f9c618e32f3c2f3a7b1469 (diff)
Cleanups
Diffstat (limited to 'hardinfo2/arch/linux/common/uptime.h')
-rw-r--r--hardinfo2/arch/linux/common/uptime.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hardinfo2/arch/linux/common/uptime.h b/hardinfo2/arch/linux/common/uptime.h
index b2412cd2..8fdc3a27 100644
--- a/hardinfo2/arch/linux/common/uptime.h
+++ b/hardinfo2/arch/linux/common/uptime.h
@@ -24,7 +24,7 @@ computer_get_uptime(void)
gulong minutes;
if ((procuptime = fopen("/proc/uptime", "r")) != NULL) {
- fscanf(procuptime, "%lu", &minutes);
+ (void)fscanf(procuptime, "%lu", &minutes);
ui->minutes = minutes / 60;
fclose(procuptime);
} else {