14-Jun-16 12:09, Nikolay Shirokovskiy пишет:
On 14.06.2016 11:46, Nikolay Shirokovskiy wrote:
Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@xxxxxxxxxxxxx>
---
src/vz/vz_sdk.c | 21 +++++++++------------
1 file changed, 9 insertions(+), 12 deletions(-)
diff --git a/src/vz/vz_sdk.c b/src/vz/vz_sdk.c
index 612a059..12691ba 100644
--- a/src/vz/vz_sdk.c
+++ b/src/vz/vz_sdk.c
@@ -1669,21 +1669,19 @@ prlsdkUpdateDomain(vzDriverPtr driver, virDomainObjPtr dom)
return prlsdkLoadDomain(driver, pdom->sdkdom, dom) ? 0 : -1;
}
-static int prlsdkSendEvent(vzDriverPtr driver,
- virDomainObjPtr dom,
- virDomainEventType lvEventType,
- int lvEventTypeDetails)
+static void
+prlsdkSendEvent(vzDriverPtr driver,
+ virDomainObjPtr dom,
+ virDomainEventType lvEventType,
+ int lvEventTypeDetails)
{
- virObjectEventPtr event = NULL;
+ virObjectEventPtr event;
event = virDomainEventLifecycleNewFromObj(dom,
lvEventType,
lvEventTypeDetails);
if (!event)
- return -1;
Phhh, if (event) of course.
ACK with phhh
--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list