From 72bdac727100dd893ad1041cb9a06b48fa211058 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 7 May 2000 14:46:33 +0000 Subject: Include "closeout.h". (main): Call atexit with close_stdout. --- src/users.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/users.c') diff --git a/src/users.c b/src/users.c index 43fe68056..9a6d277d0 100644 --- a/src/users.c +++ b/src/users.c @@ -25,6 +25,7 @@ #include "long-options.h" #include "readutmp.h" #include "system.h" +#include "closeout.h" /* The official name of this program (e.g., no `g' prefix). */ #define PROGRAM_NAME "users" @@ -134,6 +135,8 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); + atexit (close_stdout); + parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, AUTHORS, usage); -- cgit v1.2.3-54-g00ecf