aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_netbsd.c
diff options
context:
space:
mode:
authorRoger Pau Monne <roger.pau@entel.upc.edu>2012-01-19 11:17:35 +0100
committerRoger Pau Monne <roger.pau@entel.upc.edu>2012-01-19 11:17:35 +0100
commit9e0b821475bca0f67e477b1f69a55def068f5800 (patch)
tree37dbbcc3b04c280adffef5df3c580f250e0d03c4 /tools/libxc/xc_netbsd.c
parentb21046d2eaad49c6e943c1618ba07a9b7da9cd0d (diff)
downloadxen-9e0b821475bca0f67e477b1f69a55def068f5800.tar.gz
xen-9e0b821475bca0f67e477b1f69a55def068f5800.tar.bz2
xen-9e0b821475bca0f67e477b1f69a55def068f5800.zip
libxc/NetBSD: return ioctl return value on error
NetBSD libxc hypercall implementation was returning -errno on error, instead of the actual error value from ioctl. Returning error is easier to understand, and the caller can always check errno. Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu> Acked-by: Ian Campbell <ian.campbell.com> Committed-by: Ian Jackson <ian.jackson.citrix.com> Reported-by: Olaf Hering <olaf@aepfle.de>
Diffstat (limited to 'tools/libxc/xc_netbsd.c')
-rw-r--r--tools/libxc/xc_netbsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxc/xc_netbsd.c b/tools/libxc/xc_netbsd.c
index b6d67bbb8c..dbcb640828 100644
--- a/tools/libxc/xc_netbsd.c
+++ b/tools/libxc/xc_netbsd.c
@@ -103,7 +103,7 @@ static int netbsd_privcmd_hypercall(xc_interface *xch, xc_osdep_handle h, privcm
* implementation.
*/
if (error < 0)
- return -errno;
+ return error;
else
return hypercall->retval;
}