diff options
author | imp <imp@FreeBSD.org> | 1999-04-25 21:13:34 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1999-04-25 21:13:34 +0000 |
commit | 321c551969cc862a859c9e79c8404af90c94e81d (patch) | |
tree | 5ede02d61e978d083db7e7833d1560584b758dc1 /bin/csh/sem.c | |
parent | 4be4456eab17cc243bba5d62ce59ba675507482b (diff) | |
download | FreeBSD-src-321c551969cc862a859c9e79c8404af90c94e81d.zip FreeBSD-src-321c551969cc862a859c9e79c8404af90c94e81d.tar.gz |
First set of fixes to keep egcs happy. These include {} around single
statement if blocks[*] when the else could be ambiguous, not defaulting
to int type and removal of some unused variables.
[*] This is explicitly allowed by style(9) when the single statement
spans more than one line.
Reviewed by: obrien, chuckr
Diffstat (limited to 'bin/csh/sem.c')
-rw-r--r-- | bin/csh/sem.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/csh/sem.c b/bin/csh/sem.c index 753b839..f9fedda 100644 --- a/bin/csh/sem.c +++ b/bin/csh/sem.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)sem.c 8.1 (Berkeley) 5/31/93"; #else static const char rcsid[] = - "$Id: sem.c,v 1.7 1998/02/28 10:50:00 jraynard Exp $"; + "$Id: sem.c,v 1.8 1998/05/06 06:51:00 charnier Exp $"; #endif #endif /* not lint */ @@ -203,7 +203,7 @@ execute(t, wanttty, pipein, pipeout) * We have to fork for eval too. */ (bifunc && (t->t_dflg & (F_PIPEIN | F_PIPEOUT)) != 0 && - bifunc->bfunct == doeval)) + bifunc->bfunct == doeval)) { if (t->t_dtyp == NODE_PAREN || t->t_dflg & (F_REPEAT | F_AMPERSAND) || bifunc) { forked++; @@ -339,6 +339,7 @@ execute(t, wanttty, pipein, pipeout) } } + } if (pid != 0) { /* * It would be better if we could wait for the whole job when we |