From 09e6dda2dc260b7bdacfe5cfd28c4d353155e70c Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 11 Nov 1998 05:01:26 +0000 Subject: [PATCH] (BACKUPFILE_EXIT_FAILURE): Define. (get_version): Use it in place of EXIT_FAILURE. --- lib/backupfile.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/backupfile.c b/lib/backupfile.c index a22a7f235e..c20337a0a8 100644 --- a/lib/backupfile.c +++ b/lib/backupfile.c @@ -105,6 +105,10 @@ char *malloc (); # define EXIT_FAILURE 1 #endif +#ifndef BACKUPFILE_EXIT_FAILURE +# define BACKUPFILE_EXIT_FAILURE EXIT_FAILURE +#endif + /* The extension added to file names to produce a simple (as opposed to numbered) backup file name. */ const char *simple_backup_suffix = "~"; @@ -244,7 +248,7 @@ get_version (const char *version) if (i < 0) { invalid_arg ("version control type", version, i); - exit (EXIT_FAILURE); + exit (BACKUPFILE_EXIT_FAILURE); } return backup_types[i]; } -- 2.30.2