summaryrefslogtreecommitdiff
path: root/bin/csh/set.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/csh/set.c')
-rw-r--r--bin/csh/set.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/csh/set.c b/bin/csh/set.c
index 0cece4f03ca..1298121337c 100644
--- a/bin/csh/set.c
+++ b/bin/csh/set.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: set.c,v 1.20 2018/09/17 16:00:19 martijn Exp $ */
+/* $OpenBSD: set.c,v 1.21 2018/09/18 06:56:09 deraadt Exp $ */
/* $NetBSD: set.c,v 1.8 1995/03/21 18:35:52 mycroft Exp $ */
/*-
@@ -33,7 +33,6 @@
#include <sys/types.h>
#include <stdlib.h>
#include <stdarg.h>
-#include <string.h>
#include "csh.h"
#include "extern.h"
@@ -244,13 +243,13 @@ dolet(Char **v, struct command *t)
}
else {
c = *p++;
- if (strchr("+-", c)) {
+ if (any("+-", c)) {
if (c != op || *p)
stderror(ERR_NAME | ERR_UNKNOWNOP);
p = Strsave(STR1);
}
else {
- if (strchr("<>", op)) {
+ if (any("<>", op)) {
if (c != op)
stderror(ERR_NAME | ERR_UNKNOWNOP);
c = *p++;