suppress warning for unused return value

This commit is contained in:
Moritz Warning
2019-09-21 20:44:18 +02:00
parent a57b5b1316
commit ce413eab9f

View File

@@ -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);