From 05ce774b82ca6f81cb10e4cc3514b38ad568d6e0 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 30 Oct 2009 21:28:53 +0100 Subject: build: accommodate new syntax-check test Use EXIT_FAILURE and EXIT_SUCCESS, not 1 and 0. Apply these commands: perl -pi -e 's/\berror \(1,/error (EXIT_FAILURE,/' \ $(git grep -l '\idh_file_name); idhp->idh_FILE = fopen (idhp->idh_file_name, "w+b"); if (idhp->idh_FILE == NULL) - error (1, errno, _("can't create `%s'"), idhp->idh_file_name); + error (EXIT_FAILURE, errno, _("can't create `%s'"), idhp->idh_file_name); idhp->idh_magic[0] = IDH_MAGIC_0; idhp->idh_magic[1] = IDH_MAGIC_1; @@ -767,7 +767,7 @@ write_id_file (struct idhead *idhp) write_idhead (&idh); if (ferror (idhp->idh_FILE) || fclose (idhp->idh_FILE) != 0) - error (1, errno, _("error closing `%s'"), idhp->idh_file_name); + error (EXIT_FAILURE, errno, _("error closing `%s'"), idhp->idh_file_name); } /* Define primary and secondary hash and comparison functions for the diff --git a/src/xtokid.c b/src/xtokid.c index 8c0b906..cff5a08 100644 --- a/src/xtokid.c +++ b/src/xtokid.c @@ -103,7 +103,7 @@ The following arguments apply to the language-specific scanners:\n\ ")); language_help_me (); printf (_("\nReport bugs to " PACKAGE_BUGREPORT "\n\n")); - exit (0); + exit (EXIT_SUCCESS); } int -- cgit v1.2.3