search for: 86e26f8

Displaying 2 results from an estimated 2 matches for "86e26f8".

2016 Apr 04
0
[PATCH 2/2] Use 'error' function for fprintf followed by exit.
...stfs_last_errno (g), guestfs_last_error (g)); + if (appliance == NULL) exit (EXIT_FAILURE); - } host_utsname.uts_sysname = host.sysname; host_utsname.uts_release = host.release; diff --git a/tests/events/test-libvirt-auth-callbacks.c b/tests/events/test-libvirt-auth-callbacks.c index 86e26f8..a18ab24 100644 --- a/tests/events/test-libvirt-auth-callbacks.c +++ b/tests/events/test-libvirt-auth-callbacks.c @@ -55,22 +55,17 @@ main (int argc, char *argv[]) * supports the new test-driver auth feature. */ virGetVersion (&ver, NULL, NULL); - if (ver < 1002001) { - fprint...
2016 Apr 04
2
[PATCH 1/2] Use 'error' function consistently throughout.
...); - if (!ret) { - perror ("strdup"); - exit (EXIT_FAILURE); - } + if (!ret) + error (EXIT_FAILURE, errno, "strdup"); } return ret; diff --git a/tests/events/test-libvirt-auth-callbacks.c b/tests/events/test-libvirt-auth-callbacks.c index 383f20f..86e26f8 100644 --- a/tests/events/test-libvirt-auth-callbacks.c +++ b/tests/events/test-libvirt-auth-callbacks.c @@ -22,6 +22,8 @@ #include <stdlib.h> #include <string.h> #include <unistd.h> +#include <errno.h> +#include <error.h> #include <libvirt/libvirt.h> @@...