aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-04-20 10:27:06 +0200
committerStefan Weil <sw@weilnetz.de>2012-04-27 07:39:39 +0200
commitbff9f8bfbe223a688a940da09f08b0b2aebc5718 (patch)
treef3687d25aca1c5a3b2ed78fdfd1b40811dcb9e6b
parentbe5ea8ed4481f0ffa4ea0f7ba13e465701536001 (diff)
qemu-timer: Remove redundant include statements
qemu-timer.h includes qemu-common.h which already includes time.h, sys/time.h, windows.h, unistd.h, fcntl.h, errno.h and signal.h. Therefore those include statements are redundant and can be removed. Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Stefan Weil <sw@weilnetz.de>
-rw-r--r--qemu-timer.c11
-rw-r--r--qemu-timer.h6
2 files changed, 2 insertions, 15 deletions
diff --git a/qemu-timer.c b/qemu-timer.c
index 0b28edad1c..25d5fdcc28 100644
--- a/qemu-timer.c
+++ b/qemu-timer.c
@@ -29,23 +29,16 @@
#include "hw/hw.h"
-#include <unistd.h>
-#include <fcntl.h>
-#include <time.h>
-#include <errno.h>
-#include <sys/time.h>
-#include <signal.h>
+#include "qemu-timer.h"
+
#ifdef __FreeBSD__
#include <sys/param.h>
#endif
#ifdef _WIN32
-#include <windows.h>
#include <mmsystem.h>
#endif
-#include "qemu-timer.h"
-
/***********************************************************/
/* timers */
diff --git a/qemu-timer.h b/qemu-timer.h
index 094e730ca2..5a31434f47 100644
--- a/qemu-timer.h
+++ b/qemu-timer.h
@@ -4,12 +4,6 @@
#include "qemu-common.h"
#include "main-loop.h"
#include "notify.h"
-#include <time.h>
-#include <sys/time.h>
-
-#ifdef _WIN32
-#include <windows.h>
-#endif
/* timers */