libvirt/src/openvz
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 openvz driver build rules into openvz/Makefile.inc.am 2018-02-23 13:14:26 +00:00
openvz_conf.c src: Make virStr*cpy*() functions return an int 2018-07-23 14:27:30 +02:00
openvz_conf.h openvz: Ditch openvzGetNodeCPUs 2017-03-27 13:13:29 +02:00
openvz_driver.c conf: Clean up object referencing for Add and Remove 2018-05-03 19:09:03 -04:00
openvz_driver.h Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
openvz_util.c Make tests independant of system page size 2015-02-02 20:27:43 +00:00
openvz_util.h Change file names in comments to match the files they are in 2014-03-10 14:26:04 +01:00