diff options
author | 1997-01-17 07:10:42 +0000 | |
---|---|---|
committer | 1997-01-17 07:10:42 +0000 | |
commit | 180acc8f08201633decf63424d1317ede80af916 (patch) | |
tree | b64a266b7ea344cb2be4663edaffe52d9eb8de8c /regress/lib/libc | |
parent | lite2 daily + our changes. We can remove old tmp files now that fts(3) (diff) | |
download | wireguard-openbsd-180acc8f08201633decf63424d1317ede80af916.tar.xz wireguard-openbsd-180acc8f08201633decf63424d1317ede80af916.zip |
r?index -> strr?chr
Diffstat (limited to 'regress/lib/libc')
-rw-r--r-- | regress/lib/libc/db/dbtest.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/regress/lib/libc/db/dbtest.c b/regress/lib/libc/db/dbtest.c index ac9eaa48fdc..9ef76f7f347 100644 --- a/regress/lib/libc/db/dbtest.c +++ b/regress/lib/libc/db/dbtest.c @@ -530,12 +530,12 @@ u_int setflags(s) char *s; { - char *p, *index(); + char *p; for (; isspace(*s); ++s); if (*s == '\n' || *s == '\0') return (0); - if ((p = index(s, '\n')) != NULL) + if ((p = strchr(s, '\n')) != NULL) *p = '\0'; if (!strcmp(s, "R_CURSOR")) return (R_CURSOR); if (!strcmp(s, "R_FIRST")) return (R_FIRST); @@ -592,9 +592,9 @@ setinfo(type, s) static BTREEINFO ib; static HASHINFO ih; static RECNOINFO rh; - char *eq, *index(); + char *eq; - if ((eq = index(s, '=')) == NULL) + if ((eq = strchr(s, '=')) == NULL) err("%s: illegal structure set statement", s); *eq++ = '\0'; if (!isdigit(*eq)) @@ -688,10 +688,10 @@ rfile(name, lenp) struct stat sb; void *p; int fd; - char *np, *index(); + char *np; for (; isspace(*name); ++name); - if ((np = index(name, '\n')) != NULL) + if ((np = strchr(name, '\n')) != NULL) *np = '\0'; if ((fd = open(name, O_RDONLY, 0)) < 0 || fstat(fd, &sb)) |