[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCHv2 3/4] Change virDirCreate to return -errno on failure.



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 veillard com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]