summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2015-03-28 18:14:15 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-04-01 13:54:34 +0200
commit41f13bb048dbc4241dcfc024cdc3ec535510ba6b (patch)
tree9cfe1c403838f0a901e6fb22126f636504e10cb2
parent818c55be478ca2539a86567280114e823d79a51f (diff)
downloadsssd-41f13bb048dbc4241dcfc024cdc3ec535510ba6b.tar.gz
sssd-41f13bb048dbc4241dcfc024cdc3ec535510ba6b.tar.xz
sssd-41f13bb048dbc4241dcfc024cdc3ec535510ba6b.zip
KRB5: Unify prototype and definition
The prototype of function copy_keytab_into_memory does not match the definition. One of arguments differs in constant modifier. Patch also include header file to implementation module. If should avoid such problems in future. Reviewed-by: Pavel Reichl <preichl@redhat.com>
-rw-r--r--src/providers/krb5/krb5_keytab.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/providers/krb5/krb5_keytab.c b/src/providers/krb5/krb5_keytab.c
index e5af5de07..e70408b9b 100644
--- a/src/providers/krb5/krb5_keytab.c
+++ b/src/providers/krb5/krb5_keytab.c
@@ -24,6 +24,7 @@
#include "util/util.h"
#include "util/sss_krb5.h"
+#include "providers/krb5/krb5_common.h"
static krb5_error_code do_keytab_copy(krb5_context kctx, krb5_keytab s_keytab,
krb5_keytab d_keytab)
@@ -85,7 +86,7 @@ static krb5_error_code do_keytab_copy(krb5_context kctx, krb5_keytab s_keytab,
}
krb5_error_code copy_keytab_into_memory(TALLOC_CTX *mem_ctx, krb5_context kctx,
- char *inp_keytab_file,
+ const char *inp_keytab_file,
char **_mem_name,
krb5_keytab *_mem_keytab)
{
@@ -97,7 +98,7 @@ krb5_error_code copy_keytab_into_memory(TALLOC_CTX *mem_ctx, krb5_context kctx,
char *sep;
char *mem_name = NULL;
char *tmp_mem_name = NULL;
- char *keytab_file;
+ const char *keytab_file;
char default_keytab_name[MAX_KEYTAB_NAME_LEN];
keytab_file = inp_keytab_file;