aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/rc/syn.y
diff options
context:
space:
mode:
Diffstat (limited to 'sys/cmd/rc/syn.y')
-rw-r--r--sys/cmd/rc/syn.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/cmd/rc/syn.y b/sys/cmd/rc/syn.y
index c7de353..3af3254 100644
--- a/sys/cmd/rc/syn.y
+++ b/sys/cmd/rc/syn.y
@@ -14,7 +14,7 @@
#include "fns.h"
%}
%union{
- struct tree *tree;
+ struct Tree *tree;
};
%type<tree> line paren brace body cmdsa cmdsan assign epilog redir
%type<tree> cmd simple first word comword keyword words
@@ -54,7 +54,7 @@ cmd: {$$=0;}
*/
{$$=mung3($1, $3, $5 ? $5 : tree1(PAREN, $5), $8);}
| FOR '(' word ')' {skipnl();} cmd
- {$$=mung3($1, $3, (struct tree *)0, $6);}
+ {$$=mung3($1, $3, (struct Tree *)0, $6);}
| WHILE paren {skipnl();} cmd
{$$=mung2($1, $2, $4);}
| SWITCH word {skipnl();} brace
@@ -87,5 +87,5 @@ comword: '$' word {$$=tree1('$', $2);}
| '(' words ')' {$$=tree1(PAREN, $2);}
| REDIR brace {$$=mung1($1, $2); $$->type=PIPEFD;}
keyword: FOR|IN|WHILE|IF|NOT|TWIDDLE|BANG|SUBSHELL|SWITCH|FN
-words: {$$=(struct tree*)0;}
+words: {$$=(struct Tree*)0;}
| words word {$$=tree2(WORDS, $1, $2);}