diff options
author | drkhsh <me@drkhsh.at> | 2022-10-27 23:18:30 +0200 |
---|---|---|
committer | drkhsh <me@drkhsh.at> | 2022-10-28 01:03:20 +0200 |
commit | 0696635bcbad06770cce7d5a4c9e8e4d76868307 (patch) | |
tree | e08c2b8ded6542dbc9bde533566858db000e3788 /components/swap.c | |
parent | 826a5dc86202624b00ad2a51d781758a7f7ca1fa (diff) | |
download | slstatus-0696635bcbad06770cce7d5a4c9e8e4d76868307.tar.gz |
radical re-formatting 0/3: Alphabetic headers
Except stated otherwise in comment.
Fixes coding style. Formatting commits suck, incoherent coding style
sucks more.
https://suckless.org/coding_style/
Diffstat (limited to 'components/swap.c')
-rw-r--r-- | components/swap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/swap.c b/components/swap.c index 2e8a6fb..49ba3cb 100644 --- a/components/swap.c +++ b/components/swap.c @@ -4,8 +4,8 @@ #include <stdlib.h> #include <string.h> -#include "../util.h" #include "../slstatus.h" +#include "../util.h" #if defined(__linux__) static int @@ -199,11 +199,11 @@ return fmt_human(used * 1024, 1024); } #elif defined(__FreeBSD__) + #include <fcntl.h> + #include <kvm.h> #include <stdlib.h> #include <sys/types.h> - #include <fcntl.h> #include <unistd.h> - #include <kvm.h> static int getswapinfo(struct kvm_swap *swap_info, size_t size) { |