From 3e150a880447536a0af58c395e5a857635e985d3 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 17 Jan 1997 07:14:33 +0000 Subject: r?index -> strr?chr --- usr.bin/vacation/vacation.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'usr.bin/vacation') diff --git a/usr.bin/vacation/vacation.c b/usr.bin/vacation/vacation.c index b04d24a4fe4..e9ccc2a6063 100644 --- a/usr.bin/vacation/vacation.c +++ b/usr.bin/vacation/vacation.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vacation.c,v 1.4 1997/01/15 23:43:31 millert Exp $ */ +/* $OpenBSD: vacation.c,v 1.5 1997/01/17 07:13:48 millert Exp $ */ /* $NetBSD: vacation.c,v 1.7 1995/04/29 05:58:27 cgd Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)vacation.c 8.2 (Berkeley) 1/26/94"; #endif -static char rcsid[] = "$OpenBSD: vacation.c,v 1.4 1997/01/15 23:43:31 millert Exp $"; +static char rcsid[] = "$OpenBSD: vacation.c,v 1.5 1997/01/17 07:13:48 millert Exp $"; #endif /* not lint */ /* @@ -216,7 +216,7 @@ readheaders() for (p = buf + 5; *p && *p != ' '; ++p); *p = '\0'; (void)strcpy(from, buf + 5); - if (p = index(from, '\n')) + if (p = strchr(from, '\n')) *p = '\0'; if (junkmail()) exit(0); @@ -227,7 +227,7 @@ readheaders() if (strncasecmp(buf, "Precedence", 10) || buf[10] != ':' && buf[10] != ' ' && buf[10] != '\t') break; - if (!(p = index(buf, ':'))) + if (!(p = strchr(buf, ':'))) break; while (*++p && isspace(*p)); if (!*p) @@ -305,9 +305,9 @@ junkmail() * * From site!site!SENDER%site.domain%site.domain@site.domain */ - if (!(p = index(from, '%'))) - if (!(p = index(from, '@'))) { - if (p = rindex(from, '!')) + if (!(p = strchr(from, '%'))) + if (!(p = strchr(from, '@'))) { + if (p = strrchr(from, '!')) ++p; else p = from; -- cgit v1.2.3