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 /usr.bin/finger/finger.c | |
parent | 8e78a24e2e89c03ac53bd758a1781c925fe7ab71 (diff) |
r?index -> strr?chr
Diffstat (limited to 'usr.bin/finger/finger.c')
-rw-r--r-- | usr.bin/finger/finger.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/finger/finger.c b/usr.bin/finger/finger.c index 6a4350536f7..0cdaf6a1f42 100644 --- a/usr.bin/finger/finger.c +++ b/usr.bin/finger/finger.c @@ -1,4 +1,4 @@ -/* $OpenBSD: finger.c,v 1.5 1997/01/15 23:42:28 millert Exp $ */ +/* $OpenBSD: finger.c,v 1.6 1997/01/17 07:12:31 millert Exp $ */ /* * Copyright (c) 1989 The Regents of the University of California. @@ -48,7 +48,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)finger.c 5.22 (Berkeley) 6/29/90";*/ -static char rcsid[] = "$OpenBSD: finger.c,v 1.5 1997/01/15 23:42:28 millert Exp $"; +static char rcsid[] = "$OpenBSD: finger.c,v 1.6 1997/01/17 07:12:31 millert Exp $"; #endif /* not lint */ /* @@ -188,7 +188,6 @@ userlist(argc, argv) struct utmp user; struct passwd *pw; int dolocal, *used; - char *index(); if (!(used = (int *)calloc((u_int)argc, (u_int)sizeof(int)))) { (void)fprintf(stderr, "finger: out of space.\n"); @@ -197,7 +196,7 @@ userlist(argc, argv) /* pull out all network requests */ for (i = 0, dolocal = 0, nettail = &nethead; i < argc; i++) { - if (!index(argv[i], '@')) { + if (!strchr(argv[i], '@')) { dolocal = 1; continue; } |