1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-19 18:26:32 +02:00

(closeout_func): Remove variable.

(close_stdout_wrapper): Remove unused function.
(main): Remove assignment to closeout_func.
This commit is contained in:
Jim Meyering
2000-08-07 13:23:44 +00:00
parent 0981ef97c0
commit fd5da15041

View File

@@ -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)