From 6d48900634c701d0242f3f37f81d4548b828c64c Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Tue, 3 Oct 2000 16:05:11 +0000 Subject: [PATCH] * ccache.c, heuristic.c, main.c: Return of krb5_cc_get_name() is const char *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12711 dc483132-0cff-0310-8789-dd5450dbe970 --- src/clients/ksu/ChangeLog | 5 +++++ src/clients/ksu/ccache.c | 20 ++++++++++---------- src/clients/ksu/heuristic.c | 4 ++-- src/clients/ksu/main.c | 2 +- 4 files changed, 18 insertions(+), 13 deletions(-) diff --git a/src/clients/ksu/ChangeLog b/src/clients/ksu/ChangeLog index 7de701d29..e7686e4e4 100644 --- a/src/clients/ksu/ChangeLog +++ b/src/clients/ksu/ChangeLog @@ -1,3 +1,8 @@ +2000-10-03 Ezra Peisach + + * ccache.c, heuristic.c, main.c: Return of krb5_cc_get_name() is + const char *. + 2000-05-22 Tom Yu * Makefile.in (OBJS): Put @SETENVOBJ@ on same line as xmalloc.o to diff --git a/src/clients/ksu/ccache.c b/src/clients/ksu/ccache.c index 97a208422..065762e7a 100644 --- a/src/clients/ksu/ccache.c +++ b/src/clients/ksu/ccache.c @@ -57,8 +57,8 @@ uid_t target_uid; { int i=0; krb5_ccache * cc_other; -char * cc_def_name; -char * cc_other_name; +const char * cc_def_name; +const char * cc_other_name; krb5_error_code retval=0; krb5_creds ** cc_def_creds_arr = NULL; krb5_creds ** cc_other_creds_arr = NULL; @@ -344,11 +344,11 @@ char *flags_string(cred) void printtime(tv) time_t tv; { - struct tm *stime; + struct tm *kstime; char fmtbuf[18]; char fill; - stime = localtime((time_t *)&tv); + kstime = localtime((time_t *)&tv); fill = ' '; if (!krb5_timestamp_to_sfstring((krb5_timestamp) tv, fmtbuf, @@ -534,8 +534,8 @@ krb5_error_code krb5_ccache_overwrite(context, ccs, cct, primary_principal) krb5_ccache cct; krb5_principal primary_principal; { -char * cct_name; -char * ccs_name; +const char * cct_name; +const char * ccs_name; krb5_error_code retval=0; krb5_principal temp_principal; krb5_creds ** ccs_creds_arr = NULL; @@ -650,8 +650,8 @@ uid_t target_uid; int i=0; krb5_ccache * cc_other; -char * cc_def_name; -char * cc_other_name; +const char * cc_def_name; +const char * cc_other_name; krb5_error_code retval=0; krb5_creds ** cc_def_creds_arr = NULL; krb5_creds ** cc_other_creds_arr = NULL; @@ -727,7 +727,7 @@ int i=0; krb5_error_code retval=0; krb5_principal temp_principal; krb5_creds ** cc_creds_arr = NULL; -char * cc_name; +const char * cc_name; krb5_boolean stored; struct stat st_temp; @@ -799,7 +799,7 @@ krb5_error_code krb5_find_princ_in_cache (context, cc, princ, found) { krb5_error_code retval; krb5_creds ** creds_list = NULL; -char * cc_name; +const char * cc_name; struct stat st_temp; cc_name = krb5_cc_get_name(context, cc); diff --git a/src/clients/ksu/heuristic.c b/src/clients/ksu/heuristic.c index 269c059f6..f941ea97d 100644 --- a/src/clients/ksu/heuristic.c +++ b/src/clients/ksu/heuristic.c @@ -398,7 +398,7 @@ krb5_error_code find_either_ticket (context, cc, client, end_server, found) krb5_principal kdc_server; krb5_error_code retval; krb5_boolean temp_found = FALSE; - char * cc_source_name; + const char * cc_source_name; struct stat st_temp; cc_source_name = krb5_cc_get_name(context, cc); @@ -535,7 +535,7 @@ krb5_error_code get_best_princ_for_target(context, source_uid, target_uid, { princ_info princ_trials[10]; - char * cc_source_name; + const char * cc_source_name; krb5_principal cc_def_princ = NULL; krb5_principal temp_client; krb5_principal target_client; diff --git a/src/clients/ksu/main.c b/src/clients/ksu/main.c index 58d30313d..9e28c0d6f 100644 --- a/src/clients/ksu/main.c +++ b/src/clients/ksu/main.c @@ -885,7 +885,7 @@ static void sweep_up(context, cc) krb5_ccache cc; { krb5_error_code retval; - char * cc_name; + const char * cc_name; struct stat st_temp; krb5_seteuid(0); -- 2.26.2