summaryrefslogtreecommitdiff
path: root/src/seq.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-05-07 14:57:52 +0000
committerJim Meyering <jim@meyering.net>2000-05-07 14:57:52 +0000
commitc6b0fefde1f58793f2ac9e164c94197fcac230cf (patch)
treec6fd0f4258a4621b47644ad9ff9b60c07edf8c69 /src/seq.c
parent2d4fd1ab6e69af49756ced43d0fe1b8bb07ae174 (diff)
downloadcoreutils-c6b0fefde1f58793f2ac9e164c94197fcac230cf.tar.xz
Include "closeout.h".
(main): Call atexit with close_stdout.
Diffstat (limited to 'src/seq.c')
-rw-r--r--src/seq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/seq.c b/src/seq.c
index def96ae81..eb48d870a 100644
--- a/src/seq.c
+++ b/src/seq.c
@@ -339,6 +339,8 @@ main (int argc, char **argv)
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
+ atexit (close_stdout);
+
equal_width = 0;
separator = "\n";
first = 1.0;
@@ -455,7 +457,5 @@ format string may not be specified when printing equal width strings"));
errs = print_numbers (format_str);
- close_stdout ();
-
exit (errs);
}