diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-01-17 07:14:33 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-01-17 07:14:33 +0000 |
commit | 3e150a880447536a0af58c395e5a857635e985d3 (patch) | |
tree | 867c3504f60ee9bfd2fa5db3dd66d5b3a1649ecd /regress/lib | |
parent | 8e78a24e2e89c03ac53bd758a1781c925fe7ab71 (diff) |
r?index -> strr?chr
Diffstat (limited to 'regress/lib')
-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)) |