Skip to content

Commit

Permalink
suppress warning for unused return value
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarning committed Sep 21, 2019
1 parent a57b5b1 commit ce413ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ce413ea

Please sign in to comment.