From: Jim Meyering Date: Fri, 5 May 2000 21:52:22 +0000 (+0000) Subject: Include "closeout.h". X-Git-Tag: SH-UTILS-2_0h~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=80b5341cb8d59293e07ff7272f9c7c98027ce08c;p=thirdparty%2Fcoreutils.git Include "closeout.h". (main): Call close_stdout. --- diff --git a/src/factor.c b/src/factor.c index 9cf96c6477..63fbcfdb4f 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); }