summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2005-05-02 17:49:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:46 -0500
commit1c4bbe06549d86614318718a45b9bc48e3bfc81f (patch)
tree121ab409dccc32c6d0f4ea7289d95843780225ce /source3/libsmb
parent714a426fe579ad481aa342a8d4cfd5331a12978f (diff)
downloadsamba-1c4bbe06549d86614318718a45b9bc48e3bfc81f.tar.gz
samba-1c4bbe06549d86614318718a45b9bc48e3bfc81f.tar.bz2
samba-1c4bbe06549d86614318718a45b9bc48e3bfc81f.zip
r6586: get rid of a few more compiler warnings
(This used to be commit 173375f8d88bf8e8db8d60e5d5f0e5dcc28767d9)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clikrb5.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/libsmb/clikrb5.c b/source3/libsmb/clikrb5.c
index 43252b94d8..e70c2b8bec 100644
--- a/source3/libsmb/clikrb5.c
+++ b/source3/libsmb/clikrb5.c
@@ -525,11 +525,13 @@ failed:
#if defined(HAVE_KRB5_PRINCIPAL_GET_COMP_STRING) && !defined(HAVE_KRB5_PRINC_COMPONENT)
+ const krb5_data *krb5_princ_component(krb5_context context, krb5_principal principal, int i );
+
const krb5_data *krb5_princ_component(krb5_context context, krb5_principal principal, int i )
{
static krb5_data kdata;
- kdata.data = krb5_principal_get_comp_string(context, principal, i);
+ kdata.data = (char *)krb5_principal_get_comp_string(context, principal, i);
kdata.length = strlen(kdata.data);
return &kdata;
}