summaryrefslogtreecommitdiff
path: root/qint.c
diff options
context:
space:
mode:
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,
-};