]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(closeout_func): Remove variable.
authorJim Meyering <jim@meyering.net>
Mon, 7 Aug 2000 13:23:44 +0000 (13:23 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 7 Aug 2000 13:23:44 +0000 (13:23 +0000)
(close_stdout_wrapper): Remove unused function.
(main): Remove assignment to closeout_func.

src/cat.c

index 0fab1abbbb8ce97da63998f692ca9479cc795380..fad5bc14c8a9457f65d884cb9aa0be77c177310d 100644 (file)
--- a/src/cat.c
+++ b/src/cat.c
@@ -462,17 +462,6 @@ cat (
     }
 }
 
-/* This is gross, but necessary, because of the way close_stdout
-   works and because this program closes STDOUT_FILENO directly.  */
-static void (*closeout_func) (void) = close_stdout;
-
-static void
-close_stdout_wrapper (void)
-{
-  if (closeout_func)
-    (*closeout_func) ();
-}
-
 int
 main (int argc, char **argv)
 {
@@ -632,8 +621,6 @@ main (int argc, char **argv)
        }
     }
 
-  closeout_func = NULL;
-
   /* Get device, i-node number, and optimal blocksize of output.  */
 
   if (fstat (STDOUT_FILENO, &stat_buf) < 0)