summaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2014-10-03 01:41:42 -0300
committerLucas De Marchi <lucas.demarchi@intel.com>2014-10-03 01:43:15 -0300
commitc2e4286bb98c6bec77575ac0c6f862e7ddf6394f (patch)
tree17ccffbb9bed156e4c75de36adae521cf9ffed35 /shared
parent0db718edcfca1bdaf1369d3cf3773b52fcea1406 (diff)
downloadkmod-c2e4286bb98c6bec77575ac0c6f862e7ddf6394f.tar.gz
kmod-c2e4286bb98c6bec77575ac0c6f862e7ddf6394f.tar.bz2
kmod-c2e4286bb98c6bec77575ac0c6f862e7ddf6394f.zip
Reorder and reorganize header files
Let the includes in the following order: < system headers > < libkmod > < tool > < local headers >
Diffstat (limited to 'shared')
-rw-r--r--shared/array.c10
-rw-r--r--shared/hash.c2
-rw-r--r--shared/util.c10
3 files changed, 11 insertions, 11 deletions
diff --git a/shared/array.c b/shared/array.c
index b37e54e..865b3e8 100644
--- a/shared/array.c
+++ b/shared/array.c
@@ -18,14 +18,14 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <shared/array.h>
-
-#include "libkmod.h"
-
#include <assert.h>
+#include <errno.h>
#include <stdlib.h>
#include <string.h>
-#include <errno.h>
+
+#include <shared/array.h>
+
+#include <libkmod.h>
/* basic pointer array growing in steps */
diff --git a/shared/hash.c b/shared/hash.c
index d2f5a78..99057ef 100644
--- a/shared/hash.c
+++ b/shared/hash.c
@@ -18,10 +18,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <errno.h>
#include <inttypes.h>
#include <stdlib.h>
#include <string.h>
-#include <errno.h>
#include <shared/hash.h>
#include <shared/util.h>
diff --git a/shared/util.c b/shared/util.c
index 2d44107..0113967 100644
--- a/shared/util.c
+++ b/shared/util.c
@@ -21,14 +21,14 @@
*/
#include <assert.h>
+#include <ctype.h>
+#include <errno.h>
+#include <stdarg.h>
+#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
-#include <stddef.h>
-#include <stdarg.h>
-#include <unistd.h>
-#include <errno.h>
#include <string.h>
-#include <ctype.h>
+#include <unistd.h>
#include <shared/util.h>