X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=qemu%2Fqobject%2Fqnull.c;h=c124d0585eb9edcc8e63b32dde5189e0613d0edd;hb=d8eeb9b99d73f72c6a2cc61c05cdc727fdae4910;hp=9873e266e616ed5082113039c7bdb30616c131da;hpb=e44e3482bdb4d0ebde2d8b41830ac2cdb07948fb;p=kvmfornfv.git diff --git a/qemu/qobject/qnull.c b/qemu/qobject/qnull.c index 9873e266e..c124d0585 100644 --- a/qemu/qobject/qnull.c +++ b/qemu/qobject/qnull.c @@ -10,20 +10,11 @@ * or later. See the COPYING.LIB file in the top-level directory. */ +#include "qemu/osdep.h" #include "qemu-common.h" #include "qapi/qmp/qobject.h" -static void qnull_destroy_obj(QObject *obj) -{ - assert(0); -} - -static const QType qnull_type = { - .code = QTYPE_QNULL, - .destroy = qnull_destroy_obj, -}; - QObject qnull_ = { - .type = &qnull_type, + .type = QTYPE_QNULL, .refcnt = 1, };