diff options
author | Lucien Van Elsen <lwvanels@mit.edu> | 1992-08-14 08:16:43 +0000 |
---|---|---|
committer | Lucien Van Elsen <lwvanels@mit.edu> | 1992-08-14 08:16:43 +0000 |
commit | ecba71b29c9a172731209c07806abcbdc41cbeef (patch) | |
tree | fb4d059cf4236816854c87db7b7747384d70ff54 /server/acl_files.c | |
parent | 045924807edb845bc6268acd14591d00b690e8bd (diff) |
*** empty log message ***
Diffstat (limited to 'server/acl_files.c')
-rw-r--r-- | server/acl_files.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/server/acl_files.c b/server/acl_files.c index 77a1783..8cd5984 100644 --- a/server/acl_files.c +++ b/server/acl_files.c @@ -56,7 +56,6 @@ static char rcsid_acl_files_c[] = "$Id$"; extern int errno; -extern char *malloc(), *calloc(); extern time_t time(); /* Canonicalize a principal name */ @@ -72,8 +71,8 @@ acl_canonicalize_principal(principal, canon) char *dot, *atsign; int len; - dot = index(principal, INST_SEP); - atsign = index(principal, REALM_SEP); + dot = (char *) index(principal, INST_SEP); + atsign = (char *) index(principal, REALM_SEP); /* Maybe we're done already */ if(dot != NULL && atsign != NULL) { @@ -352,7 +351,7 @@ char *el; hv = hashval(el) % h->size; while(h->tbl[hv] != NULL && strcmp(h->tbl[hv], el)) hv = (hv+1) % h->size; - s = malloc(strlen(el)+1); + s = (char *) malloc(strlen(el)+1); strcpy(s, el); h->tbl[hv] = s; h->entries++; @@ -513,8 +512,8 @@ acl_check(acl, principal) return 1; /* Try the wildcards */ - realm = index(canon, REALM_SEP); - *index(canon, INST_SEP) = '\0'; /* Chuck the instance */ + realm = (char *) index(canon, REALM_SEP); + *((char *)index(canon, INST_SEP)) = '\0'; /* Chuck the instance */ sprintf(buf, "%s.*%s", canon, realm); if(acl_exact_match(acl, buf)) return 1; |