[hackers] [slstatus] Unify header includes || Aaron Marcher

From: <git_AT_suckless.org>
Date: Mon, 7 May 2018 11:26:26 +0200 (CEST)

commit 16a97fbca129bca5656f76191c1b324b1649ec22
Author: Aaron Marcher <me_AT_drkhsh.at>
AuthorDate: Mon May 7 11:21:59 2018 +0200
Commit: Aaron Marcher <me_AT_drkhsh.at>
CommitDate: Mon May 7 11:21:59 2018 +0200

    Unify header includes
    
    - Sort Alphabetically
    - Same indentation for preprocessor clauses

diff --git a/components/ip.c b/components/ip.c
index 2d2cbde..85ac15e 100644
--- a/components/ip.c
+++ b/components/ip.c
_AT_@ -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"
diff --git a/components/num_files.c b/components/num_files.c
index 1a918ac..ab43694 100644
--- a/components/num_files.c
+++ b/components/num_files.c
_AT_@ -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>
 
diff --git a/components/ram.c b/components/ram.c
index 5611022..62e9807 100644
--- a/components/ram.c
+++ b/components/ram.c
_AT_@ -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
diff --git a/components/temperature.c b/components/temperature.c
index 720f1b7..136e0d4 100644
--- a/components/temperature.c
+++ b/components/temperature.c
_AT_@ -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)
diff --git a/components/volume.c b/components/volume.c
index b2ffb40..ff25769 100644
--- a/components/volume.c
+++ b/components/volume.c
_AT_@ -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"
diff --git a/components/wifi.c b/components/wifi.c
index c209598..139ec8c 100644
--- a/components/wifi.c
+++ b/components/wifi.c
_AT_@ -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>
Received on Mon May 07 2018 - 11:26:26 CEST

This archive was generated by hypermail 2.3.0 : Mon May 07 2018 - 11:36:25 CEST