]> git.proxmox.com Git - qemu.git/blobdiff - qint.c
Merge branch 'stable-0.15' of git://git.qemu.org/qemu
[qemu.git] / qint.c
diff --git a/qint.c b/qint.c
index 9a56906895a873c5d14c725d2f569adf9f635166..fb3823a7f416319e57cfe2d69f69fd94f2a19659 100644 (file)
--- a/qint.c
+++ b/qint.c
@@ -1,19 +1,25 @@
 /*
- * QInt data type.
+ * QInt Module
  *
  * Copyright (C) 2009 Red Hat Inc.
  *
  * Authors:
  *  Luiz Capitulino <lcapitulino@redhat.com>
  *
- * This work is licensed under the terms of the GNU GPL, version 2.  See
- * the COPYING file in the top-level directory.
+ * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
+ * See the COPYING.LIB file in the top-level directory.
  */
+
 #include "qint.h"
 #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 +65,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,
-};