From 4006f4e672123e0189e58d4f76b58d06ae30eb94 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 31 Aug 2002 08:52:10 +0000 Subject: Change `exit (0)' to `exit (EXIT_SUCCESS)', `exit (1)' to `exit (EXIT_FAILURE)', and `usage (1)' to `usage (EXIT_FAILURE)'. --- src/cp.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/cp.c') diff --git a/src/cp.c b/src/cp.c index 36a66e059..76e124aab 100644 --- a/src/cp.c +++ b/src/cp.c @@ -491,12 +491,12 @@ do_copy (int n_files, char **file, const char *target_directory, if (n_files <= 0) { error (0, 0, _("missing file arguments")); - usage (1); + usage (EXIT_FAILURE); } if (n_files == 1 && !target_directory) { error (0, 0, _("missing destination file")); - usage (1); + usage (EXIT_FAILURE); } if (target_directory) @@ -545,7 +545,7 @@ do_copy (int n_files, char **file, const char *target_directory, { error (0, 0, _("%s: specified target is not a directory"), quote (dest)); - usage (1); + usage (EXIT_FAILURE); } if (n_files > 1) @@ -553,7 +553,7 @@ do_copy (int n_files, char **file, const char *target_directory, error (0, 0, _("copying multiple files, but last argument %s is not a directory"), quote (dest)); - usage (1); + usage (EXIT_FAILURE); } } @@ -650,7 +650,7 @@ do_copy (int n_files, char **file, const char *target_directory, { error (0, 0, _("when preserving paths, the destination must be a directory")); - usage (1); + usage (EXIT_FAILURE); } source = file[0]; @@ -999,14 +999,14 @@ main (int argc, char **argv) case_GETOPT_VERSION_CHAR (PROGRAM_NAME, AUTHORS); default: - usage (1); + usage (EXIT_FAILURE); } } if (x.hard_link && x.symbolic_link) { error (0, 0, _("cannot make both hard and symbolic links")); - usage (1); + usage (EXIT_FAILURE); } if (backup_suffix_string) -- cgit v1.2.3-54-g00ecf