Ignore return value of virDomainObjUnref

* src/libxl/libxl_driver.c: use ignore_value() in libxlDomainObjUnref
  and libxlCreateDomEvents
This commit is contained in:
Markus Groß 2011-03-29 18:59:09 +08:00 committed by Daniel Veillard
parent 88416593e1
commit 6d60ca5d58

View File

@ -107,7 +107,7 @@ libxlDomainObjUnref(void *data)
{ {
virDomainObjPtr vm = data; virDomainObjPtr vm = data;
virDomainObjUnref(vm); ignore_value(virDomainObjUnref(vm));
} }
/* /*
@ -279,7 +279,7 @@ libxlCreateDomEvents(virDomainObjPtr vm)
VIR_EVENT_HANDLE_READABLE | VIR_EVENT_HANDLE_ERROR, VIR_EVENT_HANDLE_READABLE | VIR_EVENT_HANDLE_ERROR,
libxlEventHandler, libxlEventHandler,
vm, libxlDomainObjUnref)) < 0) { vm, libxlDomainObjUnref)) < 0) {
virDomainObjUnref(vm); ignore_value(virDomainObjUnref(vm));
goto error; goto error;
} }