summaryrefslogtreecommitdiff
path: root/bin/ksh/lex.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-12-19 04:14:21 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-12-19 04:14:21 +0000
commitae02df2057edb3b786f254cf8867184962234a11 (patch)
treead13990fa53bf00ead486f59dec05e9b3df1cd3b /bin/ksh/lex.c
parent8695dd2ff775abd06278bea758f0f044d60a34da (diff)
spacing
Diffstat (limited to 'bin/ksh/lex.c')
-rw-r--r--bin/ksh/lex.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/bin/ksh/lex.c b/bin/ksh/lex.c
index d3ea18a6e64..9227c626382 100644
--- a/bin/ksh/lex.c
+++ b/bin/ksh/lex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lex.c,v 1.26 2004/12/18 21:25:44 millert Exp $ */
+/* $OpenBSD: lex.c,v 1.27 2004/12/19 04:14:20 deraadt Exp $ */
/*
* lexical analysis and source input
@@ -126,7 +126,7 @@ yylex(cf)
state = SWORD;
else if (cf&LETEXPR) {
*wp++ = OQUOTE; /* enclose arguments in (double) quotes */
- state = SLETPAREN;
+ state = SLETPAREN;
statep->ls_sletparen.nparen = 0;
} else { /* normal lexing */
state = (cf & HEREDELIM) ? SHEREDELIM : SBASE;
@@ -517,7 +517,6 @@ yylex(cf)
statep->ls_scsparen.csstate = 0;
state = statep->ls_state
= SCSPAREN;
-
}
}
}
@@ -1214,7 +1213,7 @@ dopprompt(sp, ntruncate, spp, doprint)
strbuf[0] = '\007';
strbuf[1] = '\0';
break;
- case 'd': /* '\' 'd' Dow Mon DD */
+ case 'd': /* '\' 'd' Dow Mon DD */
time(&t);
tm = localtime(&t);
strftime(strbuf, sizeof strbuf, "%a %b %d", tm);
@@ -1539,7 +1538,7 @@ arraysub(strp)
XString ws;
char *wp;
char c;
- int depth = 1; /* we are just past the initial [ */
+ int depth = 1; /* we are just past the initial [ */
Xinit(ws, wp, 32, ATEMP);