From a437fa8e8d0356ca42bfe6780aef834222d64ec6 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Mon, 26 Jun 2000 23:17:37 +0000 Subject: [PATCH] * prof_init.c (profile_init_path): Use profile_filespec_t instead of char *. (change provided by Nathan Neulinger ) * 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 --- src/util/profile/ChangeLog | 17 +++++++++++++---- src/util/profile/prof_init.c | 4 ++-- 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 + + * prof_init.c (profile_init_path): Use profile_filespec_t instead + of char *. (change provided by Nathan Neulinger ) + + * profile.hin: Make definition of const_profile_filespec_t to be + based on profile_filespec_t. + 2000-05-15 Alexandra Ellwood - * 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 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 -- 2.26.2