summaryrefslogtreecommitdiffstats
path: root/bin/sh/parser.c
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2013-08-16 20:24:41 +0000
committerjilles <jilles@FreeBSD.org>2013-08-16 20:24:41 +0000
commite5ea8153100355ac70e39b27b48cbaa0b23187e8 (patch)
tree1876bd2ebffa9c169c9ddafa54a21b130539fead /bin/sh/parser.c
parent112e05002cfc26041a3738883f9580db26e8d45c (diff)
downloadFreeBSD-src-e5ea8153100355ac70e39b27b48cbaa0b23187e8.zip
FreeBSD-src-e5ea8153100355ac70e39b27b48cbaa0b23187e8.tar.gz
sh: Remove unnecessary reset functions.
These are already handled by exception handlers.
Diffstat (limited to 'bin/sh/parser.c')
-rw-r--r--bin/sh/parser.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/bin/sh/parser.c b/bin/sh/parser.c
index ec15f58..a350b8b 100644
--- a/bin/sh/parser.c
+++ b/bin/sh/parser.c
@@ -210,6 +210,7 @@ parsecmd(int interact)
heredoclist = NULL;
tokpushback = 0;
+ checkkwd = 0;
doprompt = interact;
if (doprompt)
setprompt(1);
@@ -1822,14 +1823,6 @@ parsearith: {
} /* end of readtoken */
-void
-resetparser(void)
-{
- tokpushback = 0;
- checkkwd = 0;
-}
-
-
/*
* Returns true if the text contains nothing to expand (no dollar signs
* or backquotes).
OpenPOWER on IntegriCloud