mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
hyperv/: Remove spaces after casts
Signed-off-by: Martin Kletzander <mkletzan@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
9f8d3afdca
commit
4d9114f70a
@ -1466,8 +1466,8 @@ hypervDomainSendKey(virDomainPtr domain, unsigned int codeset,
|
||||
cleanup:
|
||||
VIR_FREE(translatedKeycodes);
|
||||
VIR_FREE(selector);
|
||||
hypervFreeObject(priv, (hypervObject *) keyboard);
|
||||
hypervFreeObject(priv, (hypervObject *) computerSystem);
|
||||
hypervFreeObject(priv, (hypervObject *)keyboard);
|
||||
hypervFreeObject(priv, (hypervObject *)computerSystem);
|
||||
virBufferFreeAndReset(&query);
|
||||
return result;
|
||||
}
|
||||
@ -1572,8 +1572,8 @@ hypervDomainSetMemoryFlags(virDomainPtr domain, unsigned long memory,
|
||||
virBufferFreeAndReset(&eprQuery);
|
||||
cleanup:
|
||||
VIR_FREE(memory_str);
|
||||
hypervFreeObject(priv, (hypervObject *) vssd);
|
||||
hypervFreeObject(priv, (hypervObject *) memsd);
|
||||
hypervFreeObject(priv, (hypervObject *)vssd);
|
||||
hypervFreeObject(priv, (hypervObject *)memsd);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -907,7 +907,7 @@ hypervInvokeMethod(hypervPrivate *priv, hypervInvokeParamsListPtr params,
|
||||
case MSVM_CONCRETEJOB_JOBSTATE_STARTING:
|
||||
case MSVM_CONCRETEJOB_JOBSTATE_RUNNING:
|
||||
case MSVM_CONCRETEJOB_JOBSTATE_SHUTTING_DOWN:
|
||||
hypervFreeObject(priv, (hypervObject *) job);
|
||||
hypervFreeObject(priv, (hypervObject *)job);
|
||||
job = NULL;
|
||||
usleep(100 * 1000); /* sleep 100 ms */
|
||||
timeout -= 100;
|
||||
@ -955,7 +955,7 @@ hypervInvokeMethod(hypervPrivate *priv, hypervInvokeParamsListPtr params,
|
||||
VIR_FREE(returnValue);
|
||||
VIR_FREE(instanceID);
|
||||
virBufferFreeAndReset(&query);
|
||||
hypervFreeObject(priv, (hypervObject *) job);
|
||||
hypervFreeObject(priv, (hypervObject *)job);
|
||||
hypervFreeInvokeParams(params);
|
||||
return result;
|
||||
}
|
||||
@ -1254,7 +1254,7 @@ hypervGetMsvmComputerSystemList(hypervPrivate *priv, virBufferPtr query,
|
||||
Msvm_ComputerSystem **list)
|
||||
{
|
||||
return hypervGetWmiClassList(priv, Msvm_ComputerSystem_WmiInfo, query,
|
||||
(hypervObject **) list);
|
||||
(hypervObject **)list);
|
||||
}
|
||||
|
||||
int
|
||||
@ -1262,7 +1262,7 @@ hypervGetMsvmConcreteJobList(hypervPrivate *priv, virBufferPtr query,
|
||||
Msvm_ConcreteJob **list)
|
||||
{
|
||||
return hypervGetWmiClassList(priv, Msvm_ConcreteJob_WmiInfo, query,
|
||||
(hypervObject **) list);
|
||||
(hypervObject **)list);
|
||||
}
|
||||
|
||||
int
|
||||
@ -1270,7 +1270,7 @@ hypervGetWin32ComputerSystemList(hypervPrivate *priv, virBufferPtr query,
|
||||
Win32_ComputerSystem **list)
|
||||
{
|
||||
return hypervGetWmiClassList(priv, Win32_ComputerSystem_WmiInfo, query,
|
||||
(hypervObject **) list);
|
||||
(hypervObject **)list);
|
||||
}
|
||||
|
||||
int
|
||||
@ -1278,7 +1278,7 @@ hypervGetWin32ProcessorList(hypervPrivate *priv, virBufferPtr query,
|
||||
Win32_Processor **list)
|
||||
{
|
||||
return hypervGetWmiClassList(priv, Win32_Processor_WmiInfo, query,
|
||||
(hypervObject **) list);
|
||||
(hypervObject **)list);
|
||||
}
|
||||
|
||||
int
|
||||
@ -1287,7 +1287,7 @@ hypervGetMsvmVirtualSystemSettingDataList(hypervPrivate *priv,
|
||||
Msvm_VirtualSystemSettingData **list)
|
||||
{
|
||||
return hypervGetWmiClassList(priv, Msvm_VirtualSystemSettingData_WmiInfo, query,
|
||||
(hypervObject **) list);
|
||||
(hypervObject **)list);
|
||||
}
|
||||
|
||||
int
|
||||
@ -1296,7 +1296,7 @@ hypervGetMsvmProcessorSettingDataList(hypervPrivate *priv,
|
||||
Msvm_ProcessorSettingData **list)
|
||||
{
|
||||
return hypervGetWmiClassList(priv, Msvm_ProcessorSettingData_WmiInfo, query,
|
||||
(hypervObject **) list);
|
||||
(hypervObject **)list);
|
||||
}
|
||||
|
||||
int
|
||||
@ -1304,14 +1304,14 @@ hypervGetMsvmMemorySettingDataList(hypervPrivate *priv, virBufferPtr query,
|
||||
Msvm_MemorySettingData **list)
|
||||
{
|
||||
return hypervGetWmiClassList(priv, Msvm_MemorySettingData_WmiInfo, query,
|
||||
(hypervObject **) list);
|
||||
(hypervObject **)list);
|
||||
}
|
||||
|
||||
int hypervGetMsvmKeyboardList(hypervPrivate *priv, virBufferPtr query,
|
||||
Msvm_Keyboard **list)
|
||||
{
|
||||
return hypervGetWmiClassList(priv, Msvm_Keyboard_WmiInfo, query,
|
||||
(hypervObject **) list);
|
||||
(hypervObject **)list);
|
||||
}
|
||||
|
||||
|
||||
@ -1621,7 +1621,7 @@ hypervGetMsvmVirtualSystemSettingDataFromUUID(hypervPrivate *priv,
|
||||
uuid_string);
|
||||
|
||||
if (hypervGetWmiClassList(priv, Msvm_VirtualSystemSettingData_WmiInfo, &query,
|
||||
(hypervObject **) list) < 0 || *list == NULL)
|
||||
(hypervObject **)list) < 0 || *list == NULL)
|
||||
return -1;
|
||||
|
||||
return 0;
|
||||
@ -1646,7 +1646,7 @@ hypervGetMsvmMemorySettingDataFromVSSD(hypervPrivate *priv,
|
||||
vssd_instanceid);
|
||||
|
||||
if (hypervGetWmiClassList(priv, Msvm_MemorySettingData_WmiInfo, &query,
|
||||
(hypervObject **) list) < 0 || *list == NULL)
|
||||
(hypervObject **)list) < 0 || *list == NULL)
|
||||
return -1;
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user