diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/util/profile/ChangeLog | 17 | ||||
| -rw-r--r-- | src/util/profile/prof_init.c | 4 | ||||
| -rw-r--r-- | src/util/profile/profile.hin | 4 |
3 files changed, 17 insertions, 8 deletions
diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog index 49a1c296d..ce8c0c226 100644 --- a/src/util/profile/ChangeLog +++ b/src/util/profile/ChangeLog @@ -1,8 +1,17 @@ +2000-06-26 Ezra Peisach <epeisach@zif.mit.edu> + + * 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. + 2000-05-15 Alexandra Ellwood <lxs@mit.edu> - * prof_get.c: - prof_parse_boolean () was missing some curly brackets - and was failing to check all the values in the list of - possible strings. + + * prof_get.c: + prof_parse_boolean () was missing some curly brackets + and was failing to check all the values in the list of + possible strings. 2000-04-03 Jeffrey Altman <jaltman@columbia.edu> 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; diff --git a/src/util/profile/profile.hin b/src/util/profile/profile.hin index 863f60d55..e86d68963 100644 --- a/src/util/profile/profile.hin +++ b/src/util/profile/profile.hin @@ -53,8 +53,8 @@ extern "C" { #ifdef PROFILE_USES_PATHS typedef char* profile_filespec_t; /* path as C string */ typedef char* profile_filespec_list_t; /* list of : separated paths, C string */ -typedef const char* const_profile_filespec_t; /* path as C string */ -typedef const char* const_profile_filespec_list_t; /* list of : separated paths, C string */ +typedef const profile_filespec_t const_profile_filespec_t; /* path as C string */ +typedef const profile_filespec_list_t const_profile_filespec_list_t; /* list of : separated paths, C string */ #else /* On MacOS, we use native file specifiers as unique file identifiers */ #include <Files.h> |
