#include "complain.h"
/* From basename.c. Almost a lie, as it returns a char *. */
-const char *base_name PARAMS ((char const *name));
+const char *base_name (char const *name);
FILE *finput = NULL;
ptr = fopen (name, mode);
if (!ptr)
- error (2, errno, _("cannot open file `%s'"), name);
+ error (EXIT_FAILURE, errno, _("cannot open file `%s'"), name);
return ptr;
}
result = fclose (ptr);
if (result == EOF)
- error (2, errno, _("cannot close file"));
+ error (EXIT_FAILURE, errno, _("cannot close file"));
return result;
}