Include "closeout.h".
authorJim Meyering <jim@meyering.net>
Fri, 5 May 2000 21:52:22 +0000 (21:52 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 5 May 2000 21:52:22 +0000 (21:52 +0000)
(main): Call close_stdout.

src/factor.c

index 9cf96c6..63fbcfd 100644 (file)
@@ -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
 #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);
 }