提交 4d9114f7 编写于 作者: M Martin Kletzander

hyperv/: Remove spaces after casts

Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 9f8d3afd
...@@ -1466,8 +1466,8 @@ hypervDomainSendKey(virDomainPtr domain, unsigned int codeset, ...@@ -1466,8 +1466,8 @@ hypervDomainSendKey(virDomainPtr domain, unsigned int codeset,
cleanup: cleanup:
VIR_FREE(translatedKeycodes); VIR_FREE(translatedKeycodes);
VIR_FREE(selector); VIR_FREE(selector);
hypervFreeObject(priv, (hypervObject *) keyboard); hypervFreeObject(priv, (hypervObject *)keyboard);
hypervFreeObject(priv, (hypervObject *) computerSystem); hypervFreeObject(priv, (hypervObject *)computerSystem);
virBufferFreeAndReset(&query); virBufferFreeAndReset(&query);
return result; return result;
} }
...@@ -1572,8 +1572,8 @@ hypervDomainSetMemoryFlags(virDomainPtr domain, unsigned long memory, ...@@ -1572,8 +1572,8 @@ hypervDomainSetMemoryFlags(virDomainPtr domain, unsigned long memory,
virBufferFreeAndReset(&eprQuery); virBufferFreeAndReset(&eprQuery);
cleanup: cleanup:
VIR_FREE(memory_str); VIR_FREE(memory_str);
hypervFreeObject(priv, (hypervObject *) vssd); hypervFreeObject(priv, (hypervObject *)vssd);
hypervFreeObject(priv, (hypervObject *) memsd); hypervFreeObject(priv, (hypervObject *)memsd);
return result; return result;
} }
......
...@@ -907,7 +907,7 @@ hypervInvokeMethod(hypervPrivate *priv, hypervInvokeParamsListPtr params, ...@@ -907,7 +907,7 @@ hypervInvokeMethod(hypervPrivate *priv, hypervInvokeParamsListPtr params,
case MSVM_CONCRETEJOB_JOBSTATE_STARTING: case MSVM_CONCRETEJOB_JOBSTATE_STARTING:
case MSVM_CONCRETEJOB_JOBSTATE_RUNNING: case MSVM_CONCRETEJOB_JOBSTATE_RUNNING:
case MSVM_CONCRETEJOB_JOBSTATE_SHUTTING_DOWN: case MSVM_CONCRETEJOB_JOBSTATE_SHUTTING_DOWN:
hypervFreeObject(priv, (hypervObject *) job); hypervFreeObject(priv, (hypervObject *)job);
job = NULL; job = NULL;
usleep(100 * 1000); /* sleep 100 ms */ usleep(100 * 1000); /* sleep 100 ms */
timeout -= 100; timeout -= 100;
...@@ -955,7 +955,7 @@ hypervInvokeMethod(hypervPrivate *priv, hypervInvokeParamsListPtr params, ...@@ -955,7 +955,7 @@ hypervInvokeMethod(hypervPrivate *priv, hypervInvokeParamsListPtr params,
VIR_FREE(returnValue); VIR_FREE(returnValue);
VIR_FREE(instanceID); VIR_FREE(instanceID);
virBufferFreeAndReset(&query); virBufferFreeAndReset(&query);
hypervFreeObject(priv, (hypervObject *) job); hypervFreeObject(priv, (hypervObject *)job);
hypervFreeInvokeParams(params); hypervFreeInvokeParams(params);
return result; return result;
} }
...@@ -1254,7 +1254,7 @@ hypervGetMsvmComputerSystemList(hypervPrivate *priv, virBufferPtr query, ...@@ -1254,7 +1254,7 @@ hypervGetMsvmComputerSystemList(hypervPrivate *priv, virBufferPtr query,
Msvm_ComputerSystem **list) Msvm_ComputerSystem **list)
{ {
return hypervGetWmiClassList(priv, Msvm_ComputerSystem_WmiInfo, query, return hypervGetWmiClassList(priv, Msvm_ComputerSystem_WmiInfo, query,
(hypervObject **) list); (hypervObject **)list);
} }
int int
...@@ -1262,7 +1262,7 @@ hypervGetMsvmConcreteJobList(hypervPrivate *priv, virBufferPtr query, ...@@ -1262,7 +1262,7 @@ hypervGetMsvmConcreteJobList(hypervPrivate *priv, virBufferPtr query,
Msvm_ConcreteJob **list) Msvm_ConcreteJob **list)
{ {
return hypervGetWmiClassList(priv, Msvm_ConcreteJob_WmiInfo, query, return hypervGetWmiClassList(priv, Msvm_ConcreteJob_WmiInfo, query,
(hypervObject **) list); (hypervObject **)list);
} }
int int
...@@ -1270,7 +1270,7 @@ hypervGetWin32ComputerSystemList(hypervPrivate *priv, virBufferPtr query, ...@@ -1270,7 +1270,7 @@ hypervGetWin32ComputerSystemList(hypervPrivate *priv, virBufferPtr query,
Win32_ComputerSystem **list) Win32_ComputerSystem **list)
{ {
return hypervGetWmiClassList(priv, Win32_ComputerSystem_WmiInfo, query, return hypervGetWmiClassList(priv, Win32_ComputerSystem_WmiInfo, query,
(hypervObject **) list); (hypervObject **)list);
} }
int int
...@@ -1278,7 +1278,7 @@ hypervGetWin32ProcessorList(hypervPrivate *priv, virBufferPtr query, ...@@ -1278,7 +1278,7 @@ hypervGetWin32ProcessorList(hypervPrivate *priv, virBufferPtr query,
Win32_Processor **list) Win32_Processor **list)
{ {
return hypervGetWmiClassList(priv, Win32_Processor_WmiInfo, query, return hypervGetWmiClassList(priv, Win32_Processor_WmiInfo, query,
(hypervObject **) list); (hypervObject **)list);
} }
int int
...@@ -1287,7 +1287,7 @@ hypervGetMsvmVirtualSystemSettingDataList(hypervPrivate *priv, ...@@ -1287,7 +1287,7 @@ hypervGetMsvmVirtualSystemSettingDataList(hypervPrivate *priv,
Msvm_VirtualSystemSettingData **list) Msvm_VirtualSystemSettingData **list)
{ {
return hypervGetWmiClassList(priv, Msvm_VirtualSystemSettingData_WmiInfo, query, return hypervGetWmiClassList(priv, Msvm_VirtualSystemSettingData_WmiInfo, query,
(hypervObject **) list); (hypervObject **)list);
} }
int int
...@@ -1296,7 +1296,7 @@ hypervGetMsvmProcessorSettingDataList(hypervPrivate *priv, ...@@ -1296,7 +1296,7 @@ hypervGetMsvmProcessorSettingDataList(hypervPrivate *priv,
Msvm_ProcessorSettingData **list) Msvm_ProcessorSettingData **list)
{ {
return hypervGetWmiClassList(priv, Msvm_ProcessorSettingData_WmiInfo, query, return hypervGetWmiClassList(priv, Msvm_ProcessorSettingData_WmiInfo, query,
(hypervObject **) list); (hypervObject **)list);
} }
int int
...@@ -1304,14 +1304,14 @@ hypervGetMsvmMemorySettingDataList(hypervPrivate *priv, virBufferPtr query, ...@@ -1304,14 +1304,14 @@ hypervGetMsvmMemorySettingDataList(hypervPrivate *priv, virBufferPtr query,
Msvm_MemorySettingData **list) Msvm_MemorySettingData **list)
{ {
return hypervGetWmiClassList(priv, Msvm_MemorySettingData_WmiInfo, query, return hypervGetWmiClassList(priv, Msvm_MemorySettingData_WmiInfo, query,
(hypervObject **) list); (hypervObject **)list);
} }
int hypervGetMsvmKeyboardList(hypervPrivate *priv, virBufferPtr query, int hypervGetMsvmKeyboardList(hypervPrivate *priv, virBufferPtr query,
Msvm_Keyboard **list) Msvm_Keyboard **list)
{ {
return hypervGetWmiClassList(priv, Msvm_Keyboard_WmiInfo, query, return hypervGetWmiClassList(priv, Msvm_Keyboard_WmiInfo, query,
(hypervObject **) list); (hypervObject **)list);
} }
...@@ -1621,7 +1621,7 @@ hypervGetMsvmVirtualSystemSettingDataFromUUID(hypervPrivate *priv, ...@@ -1621,7 +1621,7 @@ hypervGetMsvmVirtualSystemSettingDataFromUUID(hypervPrivate *priv,
uuid_string); uuid_string);
if (hypervGetWmiClassList(priv, Msvm_VirtualSystemSettingData_WmiInfo, &query, if (hypervGetWmiClassList(priv, Msvm_VirtualSystemSettingData_WmiInfo, &query,
(hypervObject **) list) < 0 || *list == NULL) (hypervObject **)list) < 0 || *list == NULL)
return -1; return -1;
return 0; return 0;
...@@ -1646,7 +1646,7 @@ hypervGetMsvmMemorySettingDataFromVSSD(hypervPrivate *priv, ...@@ -1646,7 +1646,7 @@ hypervGetMsvmMemorySettingDataFromVSSD(hypervPrivate *priv,
vssd_instanceid); vssd_instanceid);
if (hypervGetWmiClassList(priv, Msvm_MemorySettingData_WmiInfo, &query, if (hypervGetWmiClassList(priv, Msvm_MemorySettingData_WmiInfo, &query,
(hypervObject **) list) < 0 || *list == NULL) (hypervObject **)list) < 0 || *list == NULL)
return -1; return -1;
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册