summaryrefslogtreecommitdiff
path: root/Src/lex.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-05-30 22:35:03 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-05-30 22:35:03 +0000
commitdd5602f59b599177fb130512fc543f7efa951990 (patch)
tree93f50c0abbbc61dbea120afb6f497afe6b976fea /Src/lex.c
parentfd240e09b05ca15aa1deef35733124b6852fe809 (diff)
downloadzsh-dd5602f59b599177fb130512fc543f7efa951990.tar.gz
zsh-dd5602f59b599177fb130512fc543f7efa951990.zip
22474: use variable argument lists to improve error message handling
Diffstat (limited to 'Src/lex.c')
-rw-r--r--Src/lex.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Src/lex.c b/Src/lex.c
index 55920a142..635e847d2 100644
--- a/Src/lex.c
+++ b/Src/lex.c
@@ -1269,11 +1269,11 @@ gettokstr(int c, int sub)
brk:
hungetc(c);
if (unmatched)
- zerr("unmatched %c", NULL, unmatched);
+ zerr("unmatched %c", unmatched);
if (in_brace_param) {
while(bct-- >= in_brace_param)
cmdpop();
- zerr("closing brace expected", NULL, 0);
+ zerr("closing brace expected");
} else if (unset(IGNOREBRACES) && !sub && len > 1 &&
peek == STRING && bptr[-1] == '}' && bptr[-2] != Bnull) {
/* hack to get {foo} command syntax work */
@@ -1438,9 +1438,9 @@ parsestr(char *s)
if ((err = parsestrnoerr(s))) {
untokenize(s);
if (err > 32 && err < 127)
- zerr("parse error near `%c'", NULL, err);
+ zerr("parse error near `%c'", err);
else
- zerr("parse error", NULL, 0);
+ zerr("parse error");
}
return err;
}