diff options
author | Martijn van Duren <martijn@cvs.openbsd.org> | 2018-09-17 16:00:20 +0000 |
---|---|---|
committer | Martijn van Duren <martijn@cvs.openbsd.org> | 2018-09-17 16:00:20 +0000 |
commit | dcbb691c127251bbdb748652e2da444c0c5fd5b0 (patch) | |
tree | 886557beceb16799a643af0be543ef28ec898a0d /bin/csh/time.c | |
parent | 5505dec671be5c77fdf906fe64db738575dba646 (diff) |
Replace any() with strchr(3).
OK millert@ and miko@
Diffstat (limited to 'bin/csh/time.c')
-rw-r--r-- | bin/csh/time.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/csh/time.c b/bin/csh/time.c index bf16de91096..b94ff2cb360 100644 --- a/bin/csh/time.c +++ b/bin/csh/time.c @@ -1,4 +1,4 @@ -/* $OpenBSD: time.c,v 1.15 2017/07/22 09:37:21 anton Exp $ */ +/* $OpenBSD: time.c,v 1.16 2018/09/17 16:00:19 martijn Exp $ */ /* $NetBSD: time.c,v 1.7 1995/03/21 13:55:25 mycroft Exp $ */ /*- @@ -32,6 +32,7 @@ #include <sys/types.h> #include <stdarg.h> +#include <string.h> #include "csh.h" #include "extern.h" @@ -83,7 +84,7 @@ donice(Char **v, struct command *t) v++, cp = *v++; if (cp == 0) nval = 4; - else if (*v == 0 && any("+-", cp[0])) + else if (*v == 0 && strchr("+-", cp[0])) nval = getn(cp); (void) setpriority(PRIO_PROCESS, 0, nval); } |