mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
Fix syntax-check errors
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
e6458393ab
commit
95a515fc44
@ -1735,7 +1735,6 @@ call_func(const void *data, size_t len, void *user_handle,
|
|||||||
//(void)user_handle;
|
//(void)user_handle;
|
||||||
struct _xenapiPrivate *priv = (struct _xenapiPrivate *)user_handle;
|
struct _xenapiPrivate *priv = (struct _xenapiPrivate *)user_handle;
|
||||||
#ifdef PRINT_XML
|
#ifdef PRINT_XML
|
||||||
|
|
||||||
printf("\n\n---Data to server: -----------------------\n");
|
printf("\n\n---Data to server: -----------------------\n");
|
||||||
printf("%s\n",((char*) data));
|
printf("%s\n",((char*) data));
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
@ -548,7 +548,7 @@ createVMRecordFromXml (virConnectPtr conn, virDomainDefPtr def,
|
|||||||
char macStr[VIR_MAC_STRING_BUFLEN];
|
char macStr[VIR_MAC_STRING_BUFLEN];
|
||||||
virFormatMacAddr(def->nets[i]->mac, macStr);
|
virFormatMacAddr(def->nets[i]->mac, macStr);
|
||||||
if (!(mac = strdup(macStr))) {
|
if (!(mac = strdup(macStr))) {
|
||||||
if (bridge) VIR_FREE(bridge);
|
VIR_FREE(bridge);
|
||||||
goto error_cleanup;
|
goto error_cleanup;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -559,7 +559,7 @@ createVMRecordFromXml (virConnectPtr conn, virDomainDefPtr def,
|
|||||||
VIR_FREE(bridge);
|
VIR_FREE(bridge);
|
||||||
device_number++;
|
device_number++;
|
||||||
}
|
}
|
||||||
if (bridge) VIR_FREE(bridge);
|
VIR_FREE(bridge);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user