summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Rogers <brogers@suse.com>2012-11-27 13:11:25 -0700
committerDoug Goldstein <cardoe@cardoe.com>2012-12-13 15:31:59 -0600
commitb8ac01cbb804a7143069205374a94bb470b30f1d (patch)
tree7e0ec6e8743c59b4ee5f4559e0b439aa6067d6e0
parentqapi: handle visitor->type_size() in QapiDeallocVisitor (diff)
downloadqemu-kvm-b8ac01cbb804a7143069205374a94bb470b30f1d.tar.gz
qemu-kvm-b8ac01cbb804a7143069205374a94bb470b30f1d.tar.bz2
qemu-kvm-b8ac01cbb804a7143069205374a94bb470b30f1d.zip
qapi: fix qapi_dealloc_type_size parameter type
The second parameter to qapi_dealloc_type_size should be a uint64_t *, not a size_t *. This was causing our 32 bit x86 build to fail, since warnings are treated as errors. Signed-off-by: Bruce Rogers <brogers@suse.com> Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com> Reviewed-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> (cherry picked from commit 1d16252652688a775b244fffa1b9ac9b719ceffc) Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com> (cherry picked from commit ffffff01466a0180de7632842cf583c8a9cbf959)
-rw-r--r--qapi/qapi-dealloc-visitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qapi/qapi-dealloc-visitor.c b/qapi/qapi-dealloc-visitor.c
index a07b171b8..75214e7da 100644
--- a/qapi/qapi-dealloc-visitor.c
+++ b/qapi/qapi-dealloc-visitor.c
@@ -132,7 +132,7 @@ static void qapi_dealloc_type_number(Visitor *v, double *obj, const char *name,
{
}
-static void qapi_dealloc_type_size(Visitor *v, size_t *obj, const char *name,
+static void qapi_dealloc_type_size(Visitor *v, uint64_t *obj, const char *name,
Error **errp)
{
}