aboutsummaryrefslogtreecommitdiff
path: root/src/util/profile
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>2000-06-26 23:17:37 +0000
committerEzra Peisach <epeisach@mit.edu>2000-06-26 23:17:37 +0000
commita437fa8e8d0356ca42bfe6780aef834222d64ec6 (patch)
tree1125e2c70b5a7c5634f6ba6ad064558fc65833bc /src/util/profile
parent4c908310aba2656bf168473d15e19236123d579e (diff)
downloadkrb5-a437fa8e8d0356ca42bfe6780aef834222d64ec6.zip
krb5-a437fa8e8d0356ca42bfe6780aef834222d64ec6.tar.gz
krb5-a437fa8e8d0356ca42bfe6780aef834222d64ec6.tar.bz2
* 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')
-rw-r--r--src/util/profile/ChangeLog17
-rw-r--r--src/util/profile/prof_init.c4
-rw-r--r--src/util/profile/profile.hin4
3 files changed, 17 insertions, 8 deletions
diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog
index 49a1c29..ce8c0c22 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 7f35e44..448c222 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 863f60d..e86d689 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>