summaryrefslogtreecommitdiff
path: root/src/cat.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-08-07 13:23:44 +0000
committerJim Meyering <jim@meyering.net>2000-08-07 13:23:44 +0000
commitfd5da15041e3a3c8437d56fb250f990ebbe8d4a0 (patch)
tree75c0eab6263b1fcc9b5df3717b40ae9768145f41 /src/cat.c
parent0981ef97c0e84e507cf231ac5a486aec7d4544ae (diff)
downloadcoreutils-fd5da15041e3a3c8437d56fb250f990ebbe8d4a0.tar.xz
(closeout_func): Remove variable.
(close_stdout_wrapper): Remove unused function. (main): Remove assignment to closeout_func.
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)