From bdbf25c6f59544b8c7b10ac61abecf8556fd69c1 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Tue, 9 May 1995 20:47:44 +0000 Subject: [PATCH] srv_output.c (lang_error_message): Local variable is assigned from error_message() which returns a const char *. Should be assigned to same. srv_acl.c: Added const to acl_acl_file definition. default_acl_file is a const char * and gets assigned to it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5787 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin/v5server/ChangeLog | 9 +++++++++ src/kadmin/v5server/srv_acl.c | 2 +- src/kadmin/v5server/srv_output.c | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/kadmin/v5server/ChangeLog b/src/kadmin/v5server/ChangeLog index b9e2ba171..90277b0c2 100644 --- a/src/kadmin/v5server/ChangeLog +++ b/src/kadmin/v5server/ChangeLog @@ -1,3 +1,12 @@ +Sat May 9 17:46:31 1995 Ezra Peisach + + * srv_output.c (lang_error_message): Local variable is assigned + from error_message() which returns a const char *. Should + be assigned to same. + + * srv_acl.c: Added const to acl_acl_file + definition. default_acl_file is a const char * and gets + assigned to it. Tue May 9 15:29:10 EDT 1995 Paul Park (pjpark@mit.edu) Add new administrative protocol support functions and fix bugs. diff --git a/src/kadmin/v5server/srv_acl.c b/src/kadmin/v5server/srv_acl.c index 74fd6d726..1e320daf1 100644 --- a/src/kadmin/v5server/srv_acl.c +++ b/src/kadmin/v5server/srv_acl.c @@ -64,7 +64,7 @@ static aent_t *acl_list_head = (aent_t *) NULL; static aent_t *acl_list_tail = (aent_t *) NULL; static const char *acl_default_file = "/etc/krb5_adm.acl"; -static char *acl_acl_file = (char *) NULL; +static const char *acl_acl_file = (char *) NULL; static int acl_inited = 0; static int acl_debug_level = 0; /* diff --git a/src/kadmin/v5server/srv_output.c b/src/kadmin/v5server/srv_output.c index 0453802e5..37a1a21a2 100644 --- a/src/kadmin/v5server/srv_output.c +++ b/src/kadmin/v5server/srv_output.c @@ -68,7 +68,7 @@ lang_error_message(lang, kval) krb5_error_code kval; { char *ret; - char *ermsg; + const char *ermsg; ermsg = (char *) error_message(kval); if (lang && output_lang_supported(lang)) { -- 2.26.2