summaryrefslogtreecommitdiff
path: root/swap.c
diff options
context:
space:
mode:
Diffstat (limited to 'swap.c')
-rw-r--r--swap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/swap.c b/swap.c
index 5c161e10ca..fffd0b9239 100644
--- a/swap.c
+++ b/swap.c
@@ -318,7 +318,8 @@ static int swap_load_proc_swaps(Manager *m) {
Meta *meta;
rewind(m->proc_swaps);
- fscanf(m->proc_self_mountinfo, "%*s %*s %*s %*s %*s\n");
+
+ (void) fscanf(m->proc_self_mountinfo, "%*s %*s %*s %*s %*s\n");
for (;;) {
char *dev = NULL, *d;