X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fargmatch.c;h=210689ba3f5f1fa3dbe43f63a5a0888393043865;hb=10cf9b5e371bc4927b2b28354c19b62943dfe95e;hp=4ff5a492ea75643d9ff453c7eb2fa386103b4bf9;hpb=c44a7e417ba47cd7d9a4ce609f8392f788a9e71e;p=gnulib.git diff --git a/lib/argmatch.c b/lib/argmatch.c index 4ff5a492e..210689ba3 100644 --- a/lib/argmatch.c +++ b/lib/argmatch.c @@ -1,5 +1,7 @@ /* argmatch.c -- find a match for a string in an array - Copyright (C) 1990, 1998, 1999, 2001, 2002 Free Software Foundation, Inc. + + Copyright (C) 1990, 1998, 1999, 2001, 2002, 2003, 2004 Free + Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -33,6 +35,7 @@ #define _(msgid) gettext (msgid) #include "error.h" +#include "exit.h" #include "quotearg.h" #include "quote.h" #include "unlocked-io.h" @@ -46,7 +49,8 @@ /* Non failing version of argmatch call this function after failing. */ #ifndef ARGMATCH_DIE -# define ARGMATCH_DIE exit (EXIT_FAILURE) +# include "exitfail.h" +# define ARGMATCH_DIE exit (exit_failure) #endif #ifdef ARGMATCH_DIE_DECL @@ -206,7 +210,6 @@ argmatch_to_argument (const char *value, * Based on "getversion.c" by David MacKenzie */ char *program_name; -extern const char *getenv (); /* When to make backup files. */ enum backup_type