summaryrefslogtreecommitdiffstats
path: root/bin/sh/redir.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sh/redir.c')
-rw-r--r--bin/sh/redir.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/bin/sh/redir.c b/bin/sh/redir.c
index 855f317..d6d9fb1 100644
--- a/bin/sh/redir.c
+++ b/bin/sh/redir.c
@@ -324,16 +324,13 @@ popredir(void)
* Undo all redirections. Called on error or interrupt.
*/
-#ifdef mkinit
-
-INCLUDE "redir.h"
-
-RESET {
+void
+resetredir(void)
+{
while (redirlist)
popredir();
}
-#endif
/* Return true if fd 0 has already been redirected at least once. */
int
OpenPOWER on IntegriCloud