search for: 781423f

Displaying 2 results from an estimated 2 matches for "781423f".

Did you mean: 281420f
2016 Apr 04
0
[PATCH 2/2] Use 'error' function for fprintf followed by exit.
...EXIT_FAILURE); - } + if (STREQ (cmd, ":")) + error (EXIT_FAILURE, 0, _("empty command on command line")); /* Allow -cmd on the command line to mean (temporarily) override * the normal exit on error (RHBZ#578407). diff --git a/format/format.c b/format/format.c index 781423f..4aa31de 100644 --- a/format/format.c +++ b/format/format.c @@ -128,10 +128,8 @@ main (int argc, char *argv[]) int retry, retries; g = guestfs_create (); - if (g == NULL) { - fprintf (stderr, _("guestfs_create: failed to create handle\n")); - exit (EXIT_FAILURE); - } + if...
2016 Apr 04
2
[PATCH 1/2] Use 'error' function consistently throughout.
...) { - perror ("strdup"); - exit (EXIT_FAILURE); - } + if (ret == NULL) + error (EXIT_FAILURE, errno, "strdup"); } /* Blindly convert any backslashes into forward slashes. Is this good? */ diff --git a/format/format.c b/format/format.c index 23c44da..781423f 100644 --- a/format/format.c +++ b/format/format.c @@ -26,6 +26,7 @@ #include <unistd.h> #include <getopt.h> #include <errno.h> +#include <error.h> #include <locale.h> #include <assert.h> #include <libintl.h> @@ -163,7 +164,8 @@ main (int argc, char *...