From: Paul Eggert Date: Mon, 9 Aug 2004 18:45:10 +0000 (+0000) Subject: (xalloc_die): New function. X-Git-Tag: v5.3.0~826 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=884a7c36eb06eb0108bdbda477f710453309d52d;p=thirdparty%2Fcoreutils.git (xalloc_die): New function. (main): Remove now-obsolete initialization of xalloc_fail_func. --- diff --git a/src/csplit.c b/src/csplit.c index c61dc7ef91..b3b1d194cc 100644 --- a/src/csplit.c +++ b/src/csplit.c @@ -227,6 +227,13 @@ cleanup_fatal (void) exit (EXIT_FAILURE); } +void +xalloc_die (void) +{ + error (0, 0, "%s", _("memory exhausted")); + cleanup_fatal (); +} + static void interrupt_handler (int sig) { @@ -1328,9 +1335,6 @@ main (int argc, char **argv) remove_files = true; prefix = DEFAULT_PREFIX; - /* Change the way xmalloc and xrealloc fail. */ - xalloc_fail_func = cleanup; - while ((optc = getopt_long (argc, argv, "f:b:kn:sqz", longopts, NULL)) != -1) switch (optc) {