[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH OPW 10/11] opw: 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. Signed-off-by: Kelley Nielsen <kelleynnn@xxxxxxxxx> Suggested-by: Anthony PERARD <anthony.perard@xxxxxxxxxx> --- tools/libxl/libxl_qmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/libxl_qmp.c b/tools/libxl/libxl_qmp.c index f1f6352..20d925f 100644 --- a/tools/libxl/libxl_qmp.c +++ b/tools/libxl/libxl_qmp.c @@ -628,7 +628,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; -- 1.8.1.2 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |