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 /games/atc/log.c | |
parent | 8e78a24e2e89c03ac53bd758a1781c925fe7ab71 (diff) |
r?index -> strr?chr
Diffstat (limited to 'games/atc/log.c')
-rw-r--r-- | games/atc/log.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/games/atc/log.c b/games/atc/log.c index 76e878d84ca..4b84798d46a 100644 --- a/games/atc/log.c +++ b/games/atc/log.c @@ -99,7 +99,7 @@ log_score(list_em) register int i, fd, num_scores = 0, good, changed = 0, found = 0; struct passwd *pw; FILE *fp; - char *cp, *index(), *rindex(); + char *cp; SCORE score[100], thisscore; #ifdef SYSV struct utsname name; @@ -160,7 +160,7 @@ log_score(list_em) strcpy(thisscore.host, name.sysname); #endif - cp = rindex(file, '/'); + cp = strrchr(file, '/'); if (cp == NULL) { fprintf(stderr, "log: where's the '/' in %s?\n", file); return (-1); @@ -240,7 +240,7 @@ log_score(list_em) "game", "time", "real time", "planes safe"); puts("-------------------------------------------------------------------------------"); for (i = 0; i < num_scores; i++) { - cp = index(score[i].host, '.'); + cp = strchr(score[i].host, '.'); if (cp != NULL) *cp = '\0'; printf("%2d: %-8s %-8s %-18s %4d %9s %4d\n", i + 1, |