mirror of
https://github.com/openNDS/openNDS.git
synced 2026-05-04 03:01:32 -04:00
suppress warning for unused return value
This commit is contained in:
@@ -395,7 +395,7 @@ time_t get_system_uptime() {
|
||||
pfp = fopen ("/proc/uptime", "r");
|
||||
|
||||
if (pfp != NULL) {
|
||||
fgets (buf, sizeof(buf), pfp);
|
||||
(void) fgets (buf, sizeof(buf), pfp);
|
||||
sysuptime = atol(strtok(buf, "."));
|
||||
debug(LOG_INFO, "Operating System Uptime: %li seconds ", sysuptime);
|
||||
fclose (pfp);
|
||||
|
||||
Reference in New Issue
Block a user