aboutsummaryrefslogtreecommitdiff
path: root/tests/rtc-test.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2014-02-08 11:41:07 +0100
committerAndreas Färber <afaerber@suse.de>2014-02-17 23:10:02 +0100
commit91f32b0c92fb18a403e48d3c8ffc14422a0c1ca5 (patch)
treec1777d672e179300205f792840bc9a2ada3d8670 /tests/rtc-test.c
parente41b509d68afb1f329c8558b6edfe2fcbac88e66 (diff)
qtest: Include system headers before user headers
It is dangerous to include user headers before system headers since user macros can affect system headers. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'tests/rtc-test.c')
-rw-r--r--tests/rtc-test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/rtc-test.c b/tests/rtc-test.c
index f1b123fae1..4243624de6 100644
--- a/tests/rtc-test.c
+++ b/tests/rtc-test.c
@@ -10,8 +10,6 @@
* See the COPYING file in the top-level directory.
*
*/
-#include "libqtest.h"
-#include "hw/timer/mc146818rtc_regs.h"
#include <glib.h>
#include <stdio.h>
@@ -19,6 +17,9 @@
#include <stdlib.h>
#include <unistd.h>
+#include "libqtest.h"
+#include "hw/timer/mc146818rtc_regs.h"
+
static uint8_t base = 0x70;
static int bcd2dec(int value)