From df46f3e4ddddddf7302edca3fa2b98cb68ac8df2 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Mon, 24 Jul 2000 16:16:28 +0000 Subject: * 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 --- src/util/profile/prof_init.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/util/profile/prof_init.c') 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; -- cgit