diff options
Diffstat (limited to 'usr/src/cmd/mail/isit.c')
| -rw-r--r-- | usr/src/cmd/mail/isit.c | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/usr/src/cmd/mail/isit.c b/usr/src/cmd/mail/isit.c index 40f5527e3b..95fa8da2df 100644 --- a/usr/src/cmd/mail/isit.c +++ b/usr/src/cmd/mail/isit.c @@ -25,48 +25,44 @@ */ /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - -#pragma ident "%Z%%M% %I% %E% SMI" +/* All Rights Reserved */ #include "mail.h" /* - * isit(lp, type) -- match "name" portion of + * isit(lp, type) -- match "name" portion of * "name: value" pair * lp -> pointer to line to check * type -> type of header line to match * returns - * TRUE -> lp matches header type (case independent) + * TRUE -> lp matches header type (case independent) * FALSE -> no match * * Execpt for H_FORM type, matching is case insensitive (bug 1173101) */ int -isit(lp, type) -register char *lp; -register int type; +isit(char *lp, int type) { - register char *p; + char *p; switch (type) { case H_FROM: for (p = header[type].tag; *lp && *p; lp++, p++) { if (*p != *lp) { - return(FALSE); + return (FALSE); } } break; default: for (p = header[type].tag; *lp && *p; lp++, p++) { if (toupper(*p) != toupper(*lp)) { - return(FALSE); + return (FALSE); } } break; } - if (*p == NULL) { - return(TRUE); + if (*p == '\0') { + return (TRUE); } - return(FALSE); + return (FALSE); } |
