[SSSD] [PATCH] KRB5: Unify prototype and definition
Lukas Slebodnik
lslebodn at redhat.com
Wed Apr 1 06:52:56 UTC 2015
ehlo,
simple patch is attached.
LS
-------------- next part --------------
>From b4c48588515138d7aa0a8076479e478e924ed781 Mon Sep 17 00:00:00 2001
From: Lukas Slebodnik <lslebodn at redhat.com>
Date: Sat, 28 Mar 2015 18:14:15 +0100
Subject: [PATCH] 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.
---
src/providers/krb5/krb5_keytab.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/providers/krb5/krb5_keytab.c b/src/providers/krb5/krb5_keytab.c
index e5af5de07b7983d408d6f678b50a12d219e2d8cd..e70408b9b940b16a23a0d63e9639e6bae7d6c482 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;
--
2.3.4
More information about the sssd-devel
mailing list