Xinqi Bao's Git

Consistency with 80 char limit and breaks
[slstatus.git] / components / swap.c
index 1958eef..97428de 100644 (file)
@@ -1,5 +1,4 @@
 /* See LICENSE file for copyright and license details. */
-#include <errno.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -41,8 +40,8 @@
                        for (i = 0; i < LEN(ent); i++) {
                                if (ent[i].var &&
                                    !strncmp(line, ent[i].name, ent[i].len)) {
-                                       sscanf(line + ent[i].len + 1, "%ld kB\n",
-                                              ent[i].var);
+                                       sscanf(line + ent[i].len + 1,
+                                              "%ld kB\n", ent[i].var);
                                        left--;
                                        break;
                                }
        }
 #elif defined(__OpenBSD__)
        #include <stdlib.h>
-       #include <sys/param.h> /* dbtob */
        #include <sys/swap.h>
        #include <sys/types.h>
        #include <unistd.h>