diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-09-04 17:43:37 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-09-04 17:43:37 +0000 |
commit | aa43d9ccab056a371426de6d0606dacaf1b6296c (patch) | |
tree | 18308fe85ffb82bfd11ecbf8cdda0524eed889a2 /qstring.c | |
parent | Bring pcbios, seabios, and vgabios into the tree as git submodules. Right now, (diff) | |
download | qemu-kvm-aa43d9ccab056a371426de6d0606dacaf1b6296c.tar.gz qemu-kvm-aa43d9ccab056a371426de6d0606dacaf1b6296c.tar.bz2 qemu-kvm-aa43d9ccab056a371426de6d0606dacaf1b6296c.zip |
Shuffle lines to avoid gcc 3 warning about redundant redeclaration
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'qstring.c')
-rw-r--r-- | qstring.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -13,7 +13,12 @@ #include "qstring.h" #include "qemu-common.h" -static const QType qstring_type; +static void qstring_destroy_obj(QObject *obj); + +static const QType qstring_type = { + .code = QTYPE_QSTRING, + .destroy = qstring_destroy_obj, +}; /** * qstring_from_str(): Create a new QString from a regular C string @@ -66,8 +71,3 @@ static void qstring_destroy_obj(QObject *obj) qemu_free(qs->string); qemu_free(qs); } - -static const QType qstring_type = { - .code = QTYPE_QSTRING, - .destroy = qstring_destroy_obj, -}; |