diff options
| author | Ezra Peisach <epeisach@mit.edu> | 2000-06-26 23:17:37 +0000 |
|---|---|---|
| committer | Ezra Peisach <epeisach@mit.edu> | 2000-06-26 23:17:37 +0000 |
| commit | a437fa8e8d0356ca42bfe6780aef834222d64ec6 (patch) | |
| tree | 1125e2c70b5a7c5634f6ba6ad064558fc65833bc /src/util/profile/prof_init.c | |
| parent | 4c908310aba2656bf168473d15e19236123d579e (diff) | |
| download | krb5-a437fa8e8d0356ca42bfe6780aef834222d64ec6.tar.gz krb5-a437fa8e8d0356ca42bfe6780aef834222d64ec6.tar.xz krb5-a437fa8e8d0356ca42bfe6780aef834222d64ec6.zip | |
* prof_init.c (profile_init_path): Use profile_filespec_t instead
of char *. (change provided by Nathan Neulinger <nneul@umr.edu>)
* profile.hin: Make definition of const_profile_filespec_t to be
based on profile_filespec_t.
Compile time warnings cleanup.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12436 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/profile/prof_init.c')
| -rw-r--r-- | src/util/profile/prof_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/profile/prof_init.c b/src/util/profile/prof_init.c index 7f35e4421..448c2228e 100644 --- a/src/util/profile/prof_init.c +++ b/src/util/profile/prof_init.c @@ -85,7 +85,7 @@ profile_init_path(filepath, ret_profile) int n_entries, i; int ent_len; const char *s, *t; - char **filenames; + profile_filespec_t *filenames; errcode_t retval; /* count the distinct filename components */ @@ -95,7 +95,7 @@ profile_init_path(filepath, ret_profile) } /* the array is NULL terminated */ - filenames = (char**) malloc((n_entries+1) * sizeof(char*)); + filenames = (profile_filespec_t*) malloc((n_entries+1) * sizeof(char*)); if (filenames == 0) return ENOMEM; |
