aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}