diff options
author | Richard Basch <probe@mit.edu> | 1993-09-24 12:08:36 +0000 |
---|---|---|
committer | Richard Basch <probe@mit.edu> | 1993-09-24 12:08:36 +0000 |
commit | 8967b44457525f9c67ede1453aca21240384b68e (patch) | |
tree | 50a9c1dd711c2477c64b3d0921b5508f8a57be92 /server/acl_files.c | |
parent | e2eb0472fdf66b23b6282884f743ac87cf25a398 (diff) |
Changed index() to strchr() [ANSI]
Diffstat (limited to 'server/acl_files.c')
-rw-r--r-- | server/acl_files.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/acl_files.c b/server/acl_files.c index 8cd5984..3932e52 100644 --- a/server/acl_files.c +++ b/server/acl_files.c @@ -71,8 +71,8 @@ acl_canonicalize_principal(principal, canon) char *dot, *atsign; int len; - dot = (char *) index(principal, INST_SEP); - atsign = (char *) index(principal, REALM_SEP); + dot = (char *) strchr(principal, INST_SEP); + atsign = (char *) strchr(principal, REALM_SEP); /* Maybe we're done already */ if(dot != NULL && atsign != NULL) { @@ -512,8 +512,8 @@ acl_check(acl, principal) return 1; /* Try the wildcards */ - realm = (char *) index(canon, REALM_SEP); - *((char *)index(canon, INST_SEP)) = '\0'; /* Chuck the instance */ + realm = (char *) strchr(canon, REALM_SEP); + *((char *)strchr(canon, INST_SEP)) = '\0'; /* Chuck the instance */ sprintf(buf, "%s.*%s", canon, realm); if(acl_exact_match(acl, buf)) return 1; |