[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xl: start numbering vifs from 0



# HG changeset patch
# User Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
# Date 1279122409 -3600
# Node ID 2047364f0bdfbff7dff1ace6d4dcb577273d4028
# Parent  bd3e5bc7235b1c5456b6bc1f972ddf6273c41011
xl: start numbering vifs from 0

Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
---
 tools/libxl/xl_cmdimpl.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r bd3e5bc7235b -r 2047364f0bdf tools/libxl/xl_cmdimpl.c
--- a/tools/libxl/xl_cmdimpl.c  Wed Jul 14 16:45:38 2010 +0100
+++ b/tools/libxl/xl_cmdimpl.c  Wed Jul 14 16:46:49 2010 +0100
@@ -688,7 +688,7 @@ static void parse_config_data(const char
             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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.