aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/rc/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/cmd/rc/tree.c')
-rw-r--r--sys/cmd/rc/tree.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/cmd/rc/tree.c b/sys/cmd/rc/tree.c
index 8dca67f..14049e5 100644
--- a/sys/cmd/rc/tree.c
+++ b/sys/cmd/rc/tree.c
@@ -121,10 +121,10 @@ Tree*
simplehang(Tree *t)
{
Tree *u;
- t = tree1(Asimple, t);
- for(u = t->child[0];u->type==Aargs;u=u->child[0]) {
- if (u->child[1]->type==Adup
- || u->child[1]->type==Aredir){
+ t = tree1(Tsimple, t);
+ for(u = t->child[0];u->type==Targs;u=u->child[0]) {
+ if (u->child[1]->type==Tdup
+ || u->child[1]->type==Tredir){
u->child[1]->child[1] = t;
t = u->child[1];
u->child[1] = nil;
@@ -137,7 +137,7 @@ Tree*
wordnode(char *w)
{
Tree *t = newtree();
- t->type = Aword;
+ t->type = Tword;
t->str = strdup(w);
return t;