From 6839749f544bf033ceffe1560c7512e70ca3bd28 Mon Sep 17 00:00:00 2001 From: millert <> Date: Fri, 17 Jan 1997 07:12:13 +0000 Subject: r?index -> strr?chr --- src/regress/lib/libc/db/dbtest.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/regress/lib/libc/db/dbtest.c') diff --git a/src/regress/lib/libc/db/dbtest.c b/src/regress/lib/libc/db/dbtest.c index ac9eaa48fd..9ef76f7f34 100644 --- a/src/regress/lib/libc/db/dbtest.c +++ b/src/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)) -- cgit v1.2.3-55-g6feb