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

[Xen-devel] [PATCH 1 of 3] xl: Replace memset with libxl_device_pci_init



Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx>

diff -r ba3d30d721ee -r 66ee1a4de61a tools/libxl/xl_cmdimpl.c
--- a/tools/libxl/xl_cmdimpl.c  Fri May 11 14:19:50 2012 +0100
+++ b/tools/libxl/xl_cmdimpl.c  Fri May 11 14:45:30 2012 +0100
@@ -2264,7 +2264,7 @@ static void pcidetach(const char *dom, c
 
     find_domain(dom);
 
-    memset(&pcidev, 0x00, sizeof(pcidev));
+    libxl_device_pci_init(&pcidev);
     
     config = xlu_cfg_init(stderr, "command line");
     if (!config) { perror("xlu_cfg_inig"); exit(-1); }
@@ -2309,7 +2309,7 @@ static void pciattach(const char *dom, c
 
     find_domain(dom);
 
-    memset(&pcidev, 0x00, sizeof(pcidev));
+    libxl_device_pci_init(&pcidev);
 
     config = xlu_cfg_init(stderr, "command line");
     if (!config) { perror("xlu_cfg_inig"); exit(-1); }

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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