From f14fde004f67171eaaa20081f475d49089a9ace3 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Mon, 4 Mar 2013 14:27:27 +0100 Subject: log: move includes to top There is no reason to include headers in the main body of the source code. Move it to the top so it's more readable. Signed-off-by: David Herrmann --- src/log.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/log.c b/src/log.c index df8a62d..200a879 100644 --- a/src/log.c +++ b/src/log.c @@ -12,11 +12,13 @@ */ #include +#include #include #include #include #include #include +#include #include "githead.h" #include "log.h" #include "shl_misc.h" @@ -26,8 +28,6 @@ * We need a global locking mechanism. Use pthread here. */ -#include - static pthread_mutex_t log__mutex = PTHREAD_MUTEX_INITIALIZER; static inline void log_lock() @@ -46,8 +46,6 @@ static inline void log_unlock() * log-message. */ -#include - static struct timeval log__ftime; static void log__time(long long *sec, long long *usec) -- cgit v1.2.3