|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] libxl: use macro GCNEW in libxl_qmp.c
commit 362c286ddb7ab2a8f189b8d71da1ced7db556383
Author: Kelley Nielsen <kelleynnn@xxxxxxxxx>
AuthorDate: Mon Nov 11 02:27:54 2013 -0800
Commit: Ian Campbell <ian.campbell@xxxxxxxxxx>
CommitDate: Mon Nov 11 12:16:50 2013 +0000
libxl: use macro GCNEW in libxl_qmp.c
The new coding style uses the convenience macro GCNEW as declared in
libxl_internal.h. Substitute an invocation of this macro for its
body at the one place it occurs in libxl_qmp.c.
Suggested-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
Signed-off-by: Kelley Nielsen <kelleynnn@xxxxxxxxx>
Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---
tools/libxl/libxl_qmp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/libxl/libxl_qmp.c b/tools/libxl/libxl_qmp.c
index 4af7db6..db40126 100644
--- a/tools/libxl/libxl_qmp.c
+++ b/tools/libxl/libxl_qmp.c
@@ -632,7 +632,7 @@ static void qmp_parameters_common_add(libxl__gc *gc,
*param = libxl__json_object_alloc(gc, JSON_MAP);
}
- arg = libxl__zalloc(gc, sizeof(*arg));
+ GCNEW(arg);
arg->map_key = libxl__strdup(gc, name);
arg->obj = obj;
--
generated by git-patchbot for /home/xen/git/xen.git#master
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |