From 48039e8c9350c9e55d3d939d430dd4f9dfd288c5 Mon Sep 17 00:00:00 2001 From: hwspeedy Date: Thu, 14 Mar 2024 13:25:09 +0100 Subject: FIX GCC warnings and 3 potential crash never seen --- modules/computer/uptime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/computer/uptime.c') diff --git a/modules/computer/uptime.c b/modules/computer/uptime.c index 8aef1530..f213442f 100644 --- a/modules/computer/uptime.c +++ b/modules/computer/uptime.c @@ -26,7 +26,7 @@ computer_get_uptime(void) gulong minutes; if ((procuptime = fopen("/proc/uptime", "r")) != NULL) { - (void)fscanf(procuptime, "%lu", &minutes); + int c=fscanf(procuptime, "%lu", &minutes); ui->minutes = minutes / 60; fclose(procuptime); } else { -- cgit v1.2.3