diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-09 18:45:10 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-09 18:45:10 +0000 |
commit | 884a7c36eb06eb0108bdbda477f710453309d52d (patch) | |
tree | 74230f86a6d6bcc97097e8f41b77c39c5fd42d13 /src | |
parent | 8ad3011df39aac9833be500a4c7df7c0186ea733 (diff) | |
download | coreutils-884a7c36eb06eb0108bdbda477f710453309d52d.tar.xz |
(xalloc_die): New function.
(main): Remove now-obsolete initialization of xalloc_fail_func.
Diffstat (limited to 'src')
-rw-r--r-- | src/csplit.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/csplit.c b/src/csplit.c index c61dc7ef9..b3b1d194c 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) { |