From: Ezra Peisach Date: Mon, 2 Oct 1995 20:41:21 +0000 (+0000) Subject: * prof_init.c (profile_init_path): Add const declarations X-Git-Tag: krb5-1.0-beta6~945 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=823a3df4b5a14fc00c33491a4f92fbd200188e65;p=krb5.git * prof_init.c (profile_init_path): Add const declarations git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6923 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog index 72ca7ed7e..829eb85ac 100644 --- a/src/util/profile/ChangeLog +++ b/src/util/profile/ChangeLog @@ -1,3 +1,7 @@ +Mon Oct 2 16:39:49 1995 Ezra Peisach + + * prof_init.c (profile_init_path): Add const declarations. + Tue Sep 26 20:00:28 1995 Mark Eichin * prof_init.c (profile_init_path): takes a single string entry diff --git a/src/util/profile/prof_init.c b/src/util/profile/prof_init.c index 060675cab..867ef9996 100644 --- a/src/util/profile/prof_init.c +++ b/src/util/profile/prof_init.c @@ -72,7 +72,7 @@ errcode_t profile_init_path(filepath, ret_profile) { int n_entries, i; int ent_len; - char *s, *t; + const char *s, *t; char **filenames; errcode_t retval; @@ -106,7 +106,7 @@ errcode_t profile_init_path(filepath, ret_profile) /* cap the array */ filenames[i] = 0; - retval = profile_init(filenames, ret_profile); + retval = profile_init((const char **)filenames, ret_profile); /* count back down and free the entries */ while(--i >= 0) free(filenames[i]);