[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] libxc/NetBSD: return ioctl return value on error
# HG changeset patch # User Roger Pau Monne <roger.pau@xxxxxxxxxxxxx> # Date 1326968255 -3600 # Node ID db6b998af1821807070aa657c8aebda999cf3ce2 # Parent 8a8c6e9a7c436802139eaacc5835e5d2ffe53fd8 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@xxxxxxxxxxxxx> Acked-by: Ian Campbell <ian.campbell.com> Committed-by: Ian Jackson <ian.jackson.citrix.com> Reported-by: Olaf Hering <olaf@xxxxxxxxx> --- diff -r 8a8c6e9a7c43 -r db6b998af182 tools/libxc/xc_netbsd.c --- a/tools/libxc/xc_netbsd.c Thu Jan 19 11:21:10 2012 +0100 +++ b/tools/libxc/xc_netbsd.c Thu Jan 19 11:17:35 2012 +0100 @@ -103,7 +103,7 @@ * implementation. */ if (error < 0) - return -errno; + return error; else return hypercall->retval; } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |