From 721fff549af239baeebca23dcbed1fb15fdec0d0 Mon Sep 17 00:00:00 2001 From: Alexandra Ellwood Date: Tue, 1 Jul 2008 17:38:36 +0000 Subject: [PATCH] krb5_get_error_message returns const char * Changed temporary variables to use const char * ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20494 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kdb/kdb5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/kdb/kdb5.c b/src/lib/kdb/kdb5.c index d782d0f41..f6e506a6e 100644 --- a/src/lib/kdb/kdb5.c +++ b/src/lib/kdb/kdb5.c @@ -366,7 +366,7 @@ kdb_load_library(krb5_context kcontext, char *lib_name, db_library * lib) if ((status = krb5int_open_plugin_dirs ((const char **) path, filebases, &(*lib)->dl_dir_handle, &kcontext->err))) { - char *err_str = krb5_get_error_message(kcontext, status); + const char *err_str = krb5_get_error_message(kcontext, status); status = KRB5_KDB_DBTYPE_NOTFOUND; krb5_set_error_message (kcontext, status, "Unable to find requested database type: %s", err_str); @@ -376,7 +376,7 @@ kdb_load_library(krb5_context kcontext, char *lib_name, db_library * lib) if ((status = krb5int_get_plugin_dir_data (&(*lib)->dl_dir_handle, "kdb_function_table", &vftabl_addrs, &kcontext->err))) { - char *err_str = krb5_get_error_message(kcontext, status); + const char *err_str = krb5_get_error_message(kcontext, status); status = KRB5_KDB_DBTYPE_INIT; krb5_set_error_message (kcontext, status, "plugin symbol 'kdb_function_table' lookup failed: %s", err_str); -- 2.26.2