From 80b5341cb8d59293e07ff7272f9c7c98027ce08c Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 5 May 2000 21:52:22 +0000 Subject: Include "closeout.h". (main): Call close_stdout. --- src/factor.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') 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); } -- cgit v1.2.3-70-g09d2