aboutsummaryrefslogtreecommitdiff
path: root/qint.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-09-04 17:43:37 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-09-04 17:43:37 +0000
commitaa43d9ccab056a371426de6d0606dacaf1b6296c (patch)
tree18308fe85ffb82bfd11ecbf8cdda0524eed889a2 /qint.c
parentc34ebfdc8715f03d53e154758423c902324fee06 (diff)
Shuffle lines to avoid gcc 3 warning about redundant redeclaration
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'qint.c')
-rw-r--r--qint.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/qint.c b/qint.c
index 9a56906895..447e847af3 100644
--- a/qint.c
+++ b/qint.c
@@ -13,7 +13,12 @@
#include "qobject.h"
#include "qemu-common.h"
-static const QType qint_type;
+static void qint_destroy_obj(QObject *obj);
+
+static const QType qint_type = {
+ .code = QTYPE_QINT,
+ .destroy = qint_destroy_obj,
+};
/**
* qint_from_int(): Create a new QInt from an int64_t
@@ -59,8 +64,3 @@ static void qint_destroy_obj(QObject *obj)
assert(obj != NULL);
qemu_free(qobject_to_qint(obj));
}
-
-static const QType qint_type = {
- .code = QTYPE_QINT,
- .destroy = qint_destroy_obj,
-};