utils: Clean up includes
authorMartin Willi <martin@revosec.ch>
Wed, 15 Apr 2015 15:03:47 +0000 (17:03 +0200)
committerMartin Willi <martin@revosec.ch>
Thu, 16 Apr 2015 12:50:41 +0000 (14:50 +0200)
src/libstrongswan/utils/utils.c
src/libstrongswan/utils/utils.h

index e3a16c0..9b516ac 100644 (file)
 
 #include "utils.h"
 
-#include <string.h>
-#include <stdio.h>
 #include <unistd.h>
-#include <inttypes.h>
-#include <stdint.h>
-#include <dirent.h>
-#include <time.h>
+#include <limits.h>
 #ifndef WIN32
 # include <signal.h>
 #endif
 
 #include <library.h>
-#include <utils/chunk.h>
 #include <collections/enumerator.h>
-#include <threading/mutex.h>
-#include <threading/condvar.h>
 
 #ifdef WIN32
 
+#include <threading/mutex.h>
+#include <threading/condvar.h>
+
 /**
  * Flag to indicate signaled wait_sigint()
  */
index 87d0695..acc15c4 100644 (file)
 # include <poll.h>
 #endif
 
+#include "utils/types.h"
+#include "enum.h"
+#include "utils/atomics.h"
+#include "utils/align.h"
+#include "utils/byteorder.h"
+#include "utils/string.h"
+#include "utils/memory.h"
+#include "utils/strerror.h"
+#include "utils/status.h"
+#include "utils/object.h"
+#include "utils/path.h"
+#include "utils/time.h"
+#include "utils/tty.h"
+#ifdef __APPLE__
+# include "compat/apple.h"
+#endif
+
+/**
+ * Initialize utility functions
+ */
+void utils_init();
+
+/**
+ * Deinitialize utility functions
+ */
+void utils_deinit();
+
 /**
  * strongSwan program return codes
  */
 #define BUILD_ASSERT_ARRAY(a) \
                BUILD_ASSERT(!__builtin_types_compatible_p(typeof(a), typeof(&(a)[0])))
 
-#include "utils/types.h"
-#include "enum.h"
-#include "utils/atomics.h"
-#include "utils/align.h"
-#include "utils/byteorder.h"
-#include "utils/string.h"
-#include "utils/memory.h"
-#include "utils/strerror.h"
-#include "utils/status.h"
-#include "utils/object.h"
-#include "utils/path.h"
-#include "utils/time.h"
-#include "utils/tty.h"
-#ifdef __APPLE__
-# include "compat/apple.h"
-#endif
-
-/**
- * Initialize utility functions
- */
-void utils_init();
-
-/**
- * Deinitialize utility functions
- */
-void utils_deinit();
-
 /**
  * Debug macro to follow control flow
  */