(find_db_spec): const-correctness in parameters to krb5_config_get_next
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11231 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997 - 2000 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 1997 - 2002 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -124,14 +124,15 @@ set_config(kadm5_server_context *ctx,
|
|||||||
static kadm5_ret_t
|
static kadm5_ret_t
|
||||||
find_db_spec(kadm5_server_context *ctx)
|
find_db_spec(kadm5_server_context *ctx)
|
||||||
{
|
{
|
||||||
krb5_config_binding *top_binding = NULL;
|
const krb5_config_binding *top_binding = NULL;
|
||||||
krb5_config_binding *db_binding;
|
krb5_config_binding *db_binding;
|
||||||
krb5_config_binding *default_binding = NULL;
|
krb5_config_binding *default_binding = NULL;
|
||||||
krb5_context context = ctx->context;
|
krb5_context context = ctx->context;
|
||||||
|
|
||||||
while((db_binding = (krb5_config_binding *)
|
while((db_binding = (krb5_config_binding *)
|
||||||
krb5_config_get_next(context,
|
krb5_config_get_next(context,
|
||||||
NULL, &top_binding,
|
NULL,
|
||||||
|
&top_binding,
|
||||||
krb5_config_list,
|
krb5_config_list,
|
||||||
"kdc",
|
"kdc",
|
||||||
"database",
|
"database",
|
||||||
|
Reference in New Issue
Block a user