libxl: xc_domain_restore returns 0 on success, 1 on error

Fix restore_common to handle it this way.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
Ian Campbell committed 2010-08-24 18:26:08 +01:00
1 parent 317b6ccda5
commit 3ebec8fa65
1 file changed
+1 -1
+1 -1
View File
@@ -260,7 +260,7 @@ int restore_common(libxl_ctx *ctx, uint32_t domid,
state->store_port, &state->store_mfn,
state->console_port, &state->console_mfn,
info->hvm, info->u.hvm.pae, 0);
if ( rc < 0 ) {
if ( rc ) {
XL_LOG_ERRNO(ctx, XL_LOG_ERROR, "restoring domain");
return ERROR_FAIL;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.