libvirt/src/xenconfig
Andrea Bolognani 6c0d0210cb src: Make virStr*cpy*() functions return an int
Currently, the functions return a pointer to the
destination buffer on success or NULL on failure.

Not only does this kind of error handling look quite
alien in the context of libvirt, where most functions
return zero on success and a negative int on failure,
but it's also somewhat pointless because unless there's
been a failure the returned pointer will be the same
one passed in by the user, thus offering no additional
value.

Change the functions so that they return an int
instead.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
2018-07-23 14:27:30 +02:00
..
Makefile.inc.am make: split xenconfig driver build rules into xenconfig/Makefile.inc.am 2018-02-23 13:14:26 +00:00
xen_common.c src: Make virStr*cpy*() functions return an int 2018-07-23 14:27:30 +02:00
xen_common.h libxl: add support for multiple IP addresses 2017-12-08 13:55:07 -07:00
xen_sxpr.c src: Make virStr*cpy*() functions return an int 2018-07-23 14:27:30 +02:00
xen_sxpr.h
xen_xl.c src: Make virStr*cpy*() functions return an int 2018-07-23 14:27:30 +02:00
xen_xl.h xenconfig: remove my name and email from files 2018-05-08 13:45:51 +01:00
xen_xm.c src: Make virStr*cpy*() functions return an int 2018-07-23 14:27:30 +02:00
xen_xm.h
xenxs_private.h