diff options
| author | millert <> | 1997-01-17 07:12:13 +0000 |
|---|---|---|
| committer | millert <> | 1997-01-17 07:12:13 +0000 |
| commit | 6839749f544bf033ceffe1560c7512e70ca3bd28 (patch) | |
| tree | 3e79e240b6455320261cdae41568ff0abf9d7af0 /src | |
| parent | 3dcd8c4aebf5203dff6e9d4c88414c207e0ab74c (diff) | |
| download | openbsd-6839749f544bf033ceffe1560c7512e70ca3bd28.tar.gz openbsd-6839749f544bf033ceffe1560c7512e70ca3bd28.tar.bz2 openbsd-6839749f544bf033ceffe1560c7512e70ca3bd28.zip | |
r?index -> strr?chr
Diffstat (limited to 'src')
| -rw-r--r-- | src/regress/lib/libc/db/dbtest.c | 12 |
1 files changed, 6 insertions, 6 deletions
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 | |||
| 530 | setflags(s) | 530 | setflags(s) |
| 531 | char *s; | 531 | char *s; |
| 532 | { | 532 | { |
| 533 | char *p, *index(); | 533 | char *p; |
| 534 | 534 | ||
| 535 | for (; isspace(*s); ++s); | 535 | for (; isspace(*s); ++s); |
| 536 | if (*s == '\n' || *s == '\0') | 536 | if (*s == '\n' || *s == '\0') |
| 537 | return (0); | 537 | return (0); |
| 538 | if ((p = index(s, '\n')) != NULL) | 538 | if ((p = strchr(s, '\n')) != NULL) |
| 539 | *p = '\0'; | 539 | *p = '\0'; |
| 540 | if (!strcmp(s, "R_CURSOR")) return (R_CURSOR); | 540 | if (!strcmp(s, "R_CURSOR")) return (R_CURSOR); |
| 541 | if (!strcmp(s, "R_FIRST")) return (R_FIRST); | 541 | if (!strcmp(s, "R_FIRST")) return (R_FIRST); |
| @@ -592,9 +592,9 @@ setinfo(type, s) | |||
| 592 | static BTREEINFO ib; | 592 | static BTREEINFO ib; |
| 593 | static HASHINFO ih; | 593 | static HASHINFO ih; |
| 594 | static RECNOINFO rh; | 594 | static RECNOINFO rh; |
| 595 | char *eq, *index(); | 595 | char *eq; |
| 596 | 596 | ||
| 597 | if ((eq = index(s, '=')) == NULL) | 597 | if ((eq = strchr(s, '=')) == NULL) |
| 598 | err("%s: illegal structure set statement", s); | 598 | err("%s: illegal structure set statement", s); |
| 599 | *eq++ = '\0'; | 599 | *eq++ = '\0'; |
| 600 | if (!isdigit(*eq)) | 600 | if (!isdigit(*eq)) |
| @@ -688,10 +688,10 @@ rfile(name, lenp) | |||
| 688 | struct stat sb; | 688 | struct stat sb; |
| 689 | void *p; | 689 | void *p; |
| 690 | int fd; | 690 | int fd; |
| 691 | char *np, *index(); | 691 | char *np; |
| 692 | 692 | ||
| 693 | for (; isspace(*name); ++name); | 693 | for (; isspace(*name); ++name); |
| 694 | if ((np = index(name, '\n')) != NULL) | 694 | if ((np = strchr(name, '\n')) != NULL) |
| 695 | *np = '\0'; | 695 | *np = '\0'; |
| 696 | if ((fd = open(name, O_RDONLY, 0)) < 0 || | 696 | if ((fd = open(name, O_RDONLY, 0)) < 0 || |
| 697 | fstat(fd, &sb)) | 697 | fstat(fd, &sb)) |
