Stefano Stabellini
2010-Jul-14 13:31 UTC
[Xen-devel] [PATCH] xl: start numbering vifs from 0
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> --- diff -r 41c51b6cf5bc tools/libxl/xl_cmdimpl.c --- a/tools/libxl/xl_cmdimpl.c Tue Jul 13 19:34:48 2010 +0100 +++ b/tools/libxl/xl_cmdimpl.c Wed Jul 14 14:27:46 2010 +0100 @@ -672,7 +672,7 @@ char *buf2 = strdup(buf); char *p, *p2; *vifs = (libxl_device_nic *) realloc(*vifs, sizeof (libxl_device_nic) * ((*num_vifs) + 1)); - init_nic_info((*vifs) + (*num_vifs), (*num_vifs) + 1); + init_nic_info((*vifs) + (*num_vifs), (*num_vifs)); p = strtok(buf2, ","); if (!p) goto skip; _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel