diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-12-11 20:31:22 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-12-11 20:31:22 +0000 |
commit | 8083086402c947183d42fff909504862397d8c0d (patch) | |
tree | 9ca9e8b8e42385c5859c6452f567575310925baf /bin/ksh/lex.c | |
parent | 634e51cbb0dcbacc58c0cdbe439f9d2c412befa0 (diff) |
fix a few name clashes with libc; found by lint. ok deraadt@
Diffstat (limited to 'bin/ksh/lex.c')
-rw-r--r-- | bin/ksh/lex.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ksh/lex.c b/bin/ksh/lex.c index 5a5345a1903..416d8584795 100644 --- a/bin/ksh/lex.c +++ b/bin/ksh/lex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lex.c,v 1.37 2005/09/11 18:02:27 otto Exp $ */ +/* $OpenBSD: lex.c,v 1.38 2005/12/11 20:31:21 otto Exp $ */ /* * lexical analysis and source input @@ -780,12 +780,12 @@ Done: int h = hash(ident); /* { */ - if ((cf & KEYWORD) && (p = tsearch(&keywords, ident, h)) && + if ((cf & KEYWORD) && (p = ktsearch(&keywords, ident, h)) && (!(cf & ESACONLY) || p->val.i == ESAC || p->val.i == '}')) { afree(yylval.cp, ATEMP); return p->val.i; } - if ((cf & ALIAS) && (p = tsearch(&aliases, ident, h)) && + if ((cf & ALIAS) && (p = ktsearch(&aliases, ident, h)) && (p->flag & ISSET)) { Source *s; |