summaryrefslogtreecommitdiff
path: root/src/cat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cat.c')
-rw-r--r--src/cat.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/cat.c b/src/cat.c
index 0fab1abbb..fad5bc14c 100644
--- 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)