[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 22 of 27 V4] libxl: do not explicitly initialise members of build info to zero
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxx> # Date 1330598785 0 # Node ID 4918e8436684df642284f3b43be1dd75d1703421 # Parent a884dc50100119da3e767ebe243f3e978981670f libxl: do not explicitly initialise members of build info to zero Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> diff -r a884dc501001 -r 4918e8436684 tools/libxl/libxl_create.c --- a/tools/libxl/libxl_create.c Thu Mar 01 10:46:23 2012 +0000 +++ b/tools/libxl/libxl_create.c Thu Mar 01 10:46:25 2012 +0000 @@ -73,7 +73,6 @@ void libxl_domain_build_info_init(libxl_ const libxl_domain_create_info *c_info) { memset(b_info, '\0', sizeof(*b_info)); - b_info->cpuid = NULL; b_info->type = c_info->type; b_info->max_memkb = LIBXL_MEMKB_DEFAULT; @@ -86,13 +85,7 @@ void libxl_domain_build_info_init(libxl_ switch (b_info->type) { case LIBXL_DOMAIN_TYPE_HVM: - b_info->u.hvm.firmware = NULL; - b_info->u.hvm.bios = 0; b_info->u.hvm.timer_mode = LIBXL_TIMER_MODE_DEFAULT; - - b_info->u.hvm.vnc.display = 0; - b_info->u.hvm.serial = NULL; - b_info->u.hvm.usbdevice = NULL; break; case LIBXL_DOMAIN_TYPE_PV: b_info->u.pv.slack_memkb = 0; _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |