tools/libxc: assign positive values to errno

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
Olaf Hering authored and Ian Jackson committed 2014-03-10 16:50:58 +00:00
1 parent 269324ae07
commit 8a389b963f
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ void *xc_map_foreign_pages(xc_interface *xch, uint32_t dom, int prot,
int i, *err;
if (num < 0) {
errno = -EINVAL;
errno = EINVAL;
return NULL;
}
+1 -1
View File
@@ -76,7 +76,7 @@ int xc_mem_paging_load(xc_interface *xch, domid_t domain_id,
{
int rc, old_errno;
errno = -EINVAL;
errno = EINVAL;
if ( !buffer )
return -1;
+1 -1
View File
@@ -349,7 +349,7 @@ static int minios_evtchn_unbind(xc_evtchn *xce, xc_osdep_handle h, evtchn_port_t
}
}
printf("Warning: couldn't find port %"PRId32" for xc handle %x\n", port, fd);
errno = -EINVAL;
errno = EINVAL;
return -1;
}
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.