diff options
Diffstat (limited to 'bin/csh/exec.c')
-rw-r--r-- | bin/csh/exec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/csh/exec.c b/bin/csh/exec.c index fe12855f7a2..774eaa314df 100644 --- a/bin/csh/exec.c +++ b/bin/csh/exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec.c,v 1.19 2015/12/26 13:48:38 mestre Exp $ */ +/* $OpenBSD: exec.c,v 1.20 2018/09/17 16:00:19 martijn Exp $ */ /* $NetBSD: exec.c,v 1.9 1996/09/30 20:03:54 christos Exp $ */ /*- @@ -137,7 +137,7 @@ doexec(Char **v, struct command *t) blkfree(pv); pexerr(); } - slash = any(short2str(expath), '/'); + slash = (bool) strchr(short2str(expath), '/'); /* * Glob the argument list, if necessary. Otherwise trim off the quote bits. @@ -492,7 +492,7 @@ iscommand(Char *name) Char **pv; Char *sav; struct varent *v; - bool slash = any(short2str(name), '/'); + bool slash = (bool) strchr(short2str(name), '/'); int hashval = 0, hashval1, i; v = adrof(STRpath); @@ -680,7 +680,7 @@ tellmewhat(struct wordent *lexp, Char *str, int len) if ((i = iscommand(sp->word)) != 0) { Char **pv; struct varent *v; - bool slash = any(short2str(sp->word), '/'); + bool slash = (bool) strchr(short2str(sp->word), '/'); v = adrof(STRpath); if (v == 0 || v->vec[0] == 0 || slash) |