Unify header includes
authorAaron Marcher <me@drkhsh.at>
Mon, 7 May 2018 09:21:59 +0000 (11:21 +0200)
committerAaron Marcher <me@drkhsh.at>
Mon, 7 May 2018 09:21:59 +0000 (11:21 +0200)
- Sort Alphabetically
- Same indentation for preprocessor clauses

components/ip.c
components/num_files.c
components/ram.c
components/temperature.c
components/volume.c
components/wifi.c

index 2d2cbde4a95d208ba034d9c5af6bdb8ba793199c..85ac15e706fe84b189b9bd1191a94fb9d05832c8 100644 (file)
@@ -5,8 +5,8 @@
 #include <stdio.h>
 #include <string.h>
 #if defined(__OpenBSD__)
-#include <sys/types.h>
-#include <sys/socket.h>
+       #include <sys/types.h>
+       #include <sys/socket.h>
 #endif
 
 #include "../util.h"
index 1a918ac5144b7a3bd304a67bbe6b1a04f599f76a..ab43694b1eed21d1c750ad635e222bc73cdeaee8 100644 (file)
@@ -1,6 +1,6 @@
 /* See LICENSE file for copyright and license details. */
-#include <errno.h>
 #include <dirent.h>
+#include <errno.h>
 #include <stdio.h>
 #include <string.h>
 
index 5611022201201a678560d3e597289c59f61c148c..62e98078a581c952464b173cd921362ba71507fc 100644 (file)
@@ -54,9 +54,9 @@
                       NULL;
        }
 #elif defined(__OpenBSD__)
-       #include <sys/types.h>
-       #include <sys/sysctl.h>
        #include <stdlib.h>
+       #include <sys/sysctl.h>
+       #include <sys/types.h>
        #include <unistd.h>
 
        inline int
index 720f1b718bfc32e4219e02f7792c48e5e170cecb..136e0d4133bfb7dcacb8c1db0ca0a149e987aeda 100644 (file)
@@ -16,9 +16,9 @@
        #include <errno.h>
        #include <stdio.h>
        #include <string.h>
+       #include <sys/sensors.h>
        #include <sys/sysctl.h>
        #include <sys/time.h>
-       #include <sys/sensors.h>
 
        const char *
        temp(const char *null)
index b2ffb4022de2ddce78327989ea9d6f75947ccf2a..ff25769b39cc07058dfa3eeb360940070c2bba18 100644 (file)
@@ -1,14 +1,14 @@
 /* See LICENSE file for copyright and license details. */
 #include <errno.h>
 #include <fcntl.h>
+#include <stdio.h>
+#include <string.h>
 #if defined(__OpenBSD__)
-include <soundcard.h>
+       #include <soundcard.h>
 #else
-include <sys/soundcard.h>
+       #include <sys/soundcard.h>
 #endif
 #include <sys/ioctl.h>
-#include <stdio.h>
-#include <string.h>
 #include <unistd.h>
 
 #include "../util.h"
index c209598610e0d84e5f15c7a2f2253ad66b2e9c8b..139ec8ca95846094dc1898534120a0efbb9ca1c6 100644 (file)
@@ -2,10 +2,10 @@
 #if defined(__linux__)
        #include <errno.h>
        #include <ifaddrs.h>
+       #include <limits.h>
        #include <linux/wireless.h>
        #include <sys/socket.h>
        #include <stdio.h>
-       #include <limits.h>
        #include <string.h>
        #include <sys/ioctl.h>
        #include <unistd.h>