[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/5] qemu-timer: Remove redundant include statements
From: |
Stefan Weil |
Subject: |
[Qemu-devel] [PATCH 1/5] qemu-timer: Remove redundant include statements |
Date: |
Fri, 20 Apr 2012 12:03:02 +0200 |
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.
Signed-off-by: Stefan Weil <address@hidden>
---
qemu-timer.c | 11 ++---------
qemu-timer.h | 6 ------
2 files changed, 2 insertions(+), 15 deletions(-)
diff --git a/qemu-timer.c b/qemu-timer.c
index 17915df..87d9636 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 661bbe7..1cfc9e0 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 */
--
1.7.9
- [Qemu-devel] [PATCH 0/5] qemu-timer: Clean code, Stefan Weil, 2012/04/20
- [Qemu-devel] [PATCH 4/5] qemu-timer: Remove function alarm_has_dynticks, Stefan Weil, 2012/04/20
- [Qemu-devel] [PATCH 2/5] qemu-timer: Remove unused function qemu_alarm_pending, Stefan Weil, 2012/04/20
- [Qemu-devel] [PATCH 5/5] qemu-timer: Optimize data structures, Stefan Weil, 2012/04/20
- [Qemu-devel] [PATCH 3/5] qemu-timer: Use bool, false, true for boolean values, Stefan Weil, 2012/04/20
- [Qemu-devel] [PATCH 1/5] qemu-timer: Remove redundant include statements,
Stefan Weil <=
- Re: [Qemu-devel] [PATCH 0/5] qemu-timer: Clean code, Paolo Bonzini, 2012/04/20
- Re: [Qemu-devel] [PATCH 0/5] qemu-timer: Clean code, Anthony Liguori, 2012/04/23