summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4935921)
raw | patch | inline | side by side (parent: 4935921)
author | Davide Guerri <davide.guerri@gmail.com> | |
Fri, 31 Aug 2012 10:04:34 +0000 (12:04 +0200) | ||
committer | Davide Guerri <davide.guerri@gmail.com> | |
Fri, 31 Aug 2012 10:04:34 +0000 (12:04 +0200) |
src/libvirt.c | patch | blob | history |
diff --git a/src/libvirt.c b/src/libvirt.c
index 2aa0a7ade3c974b17f96d3fd312798e5814be141..e63b179eb2261e9732b851a23c42ab5a2d2c0f78 100644 (file)
--- a/src/libvirt.c
+++ b/src/libvirt.c
ignore_device_match (il_interface_devices, name, address) != 0))
goto cont3;
- add_interface_device (dom, path, address, j+1);
+ add_interface_device (dom, path, address, j+1);
cont3:
if (path) xmlFree (path);
if (address) xmlFree (address);
@@ -779,10 +779,10 @@ add_interface_device (virDomainPtr dom, const char *path, const char *address, u
address_copy = strdup (address);
if (!address_copy) {
- sfree(path_copy)
- return -1;
- }
-
+ sfree(path_copy);
+ return -1;
+ }
+
snprintf(number_string, sizeof (number_string), "interface-%u", number);
if (interface_devices)
free_domains ();
if (conn != NULL)
- virConnectClose (conn);
+ virConnectClose (conn);
conn = NULL;
ignorelist_free (il_domains);
module_register (void)
{
plugin_register_config ("libvirt",
- lv_config,
- config_keys, NR_CONFIG_KEYS);
+ lv_config,
+ config_keys, NR_CONFIG_KEYS);
plugin_register_init ("libvirt", lv_init);
plugin_register_read ("libvirt", lv_read);
plugin_register_shutdown ("libvirt", lv_shutdown);