[libvirt] [PATCHv2 3/4] Change virDirCreate to return -errno on failure.
Daniel Veillard
veillard at redhat.com
Wed Jul 21 15:17:49 UTC 2010
On Mon, Jul 19, 2010 at 09:21:54PM -0400, Laine Stump wrote:
> virDirCreate also previously returned 0 on success and errno on
> failure. This makes it fit the recommended convention of returning 0
> on success, -errno (ie a negative number) on failure.
> ---
> src/storage/storage_backend_fs.c | 8 ++++----
> src/util/util.c | 32 +++++++++++++++++---------------
> 2 files changed, 21 insertions(+), 19 deletions(-)
>
> diff --git a/src/storage/storage_backend_fs.c b/src/storage/storage_backend_fs.c
> index ffb0071..0761bd8 100644
ACK,
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel at veillard.com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
More information about the libvir-list
mailing list