diff options
author | Jim Meyering <jim@meyering.net> | 2000-05-05 21:52:22 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-05-05 21:52:22 +0000 |
commit | 80b5341cb8d59293e07ff7272f9c7c98027ce08c (patch) | |
tree | 0901921d01d8b6123a4657fd1580d38a5513ce2d /src | |
parent | f2fde491db4582e3e2832b87001155e761b7db37 (diff) | |
download | coreutils-80b5341cb8d59293e07ff7272f9c7c98027ce08c.tar.xz |
Include "closeout.h".
(main): Call close_stdout.
Diffstat (limited to 'src')
-rw-r--r-- | src/factor.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/factor.c b/src/factor.c index 9cf96c647..63fbcfdb4 100644 --- a/src/factor.c +++ b/src/factor.c @@ -1,5 +1,5 @@ /* factor -- print factors of n. - Copyright (C) 86, 95, 96, 1997, 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 86, 95, 96, 1997, 1998, 1999, 2000 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 @@ -26,9 +26,10 @@ #define NDEBUG 1 #include "system.h" -#include "long-options.h" +#include "closeout.h" #include "error.h" #include "human.h" +#include "long-options.h" #include "readtokens.h" #include "xstrtol.h" @@ -203,5 +204,7 @@ main (int argc, char **argv) if (fail) usage (1); + close_stdout (); + exit (fail); } |