summaryrefslogtreecommitdiffstats
path: root/src/util/profile/prof_init.c
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>2000-07-24 16:16:28 +0000
committerEzra Peisach <epeisach@mit.edu>2000-07-24 16:16:28 +0000
commitdf46f3e4ddddddf7302edca3fa2b98cb68ac8df2 (patch)
treec6a49c7baf8cc0cd6351a733a5a94a84b9dd9019 /src/util/profile/prof_init.c
parent80c58c2c1a01da0e6a066b2be1a569d4ab624672 (diff)
downloadkrb5-df46f3e4ddddddf7302edca3fa2b98cb68ac8df2.tar.gz
krb5-df46f3e4ddddddf7302edca3fa2b98cb68ac8df2.tar.xz
krb5-df46f3e4ddddddf7302edca3fa2b98cb68ac8df2.zip
* prof_init.c: Cleanup internal type warnings in calls to profile_init
* test_parse.c (main): Cast arguments to error_message. * prof_file.c (profile_open_file): Variable with argument to malloc should be unsigned. * profile.hin: Revert changes to const_profile_filespect_t and profile_filespec_t to preserve interface. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12585 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/profile/prof_init.c')
-rw-r--r--src/util/profile/prof_init.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/util/profile/prof_init.c b/src/util/profile/prof_init.c
index 448c2228e..b3b275a66 100644
--- a/src/util/profile/prof_init.c
+++ b/src/util/profile/prof_init.c
@@ -83,7 +83,7 @@ profile_init_path(filepath, ret_profile)
profile_t *ret_profile;
{
int n_entries, i;
- int ent_len;
+ unsigned int ent_len;
const char *s, *t;
profile_filespec_t *filenames;
errcode_t retval;
@@ -119,7 +119,8 @@ profile_init_path(filepath, ret_profile)
/* cap the array */
filenames[i] = 0;
- retval = profile_init(filenames, ret_profile);
+ retval = profile_init((const_profile_filespec_t *) filenames,
+ ret_profile);
/* count back down and free the entries */
while(--i >= 0) free(filenames[i]);
@@ -349,7 +350,8 @@ errcode_t profile_ser_internalize(unused, profilep, bufpp, remainp)
goto cleanup;
}
- if ((retval = profile_init(flist, profilep)))
+ if ((retval = profile_init((const_profile_filespec_t *) flist,
+ profilep)))
goto cleanup;
*bufpp = bp;