summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-10-09 11:05:42 +0200
committerKarolin Seeger <kseeger@samba.org>2010-01-13 14:01:00 +0100
commit749762a7f809cac50c01a922b58289dee6a7279e (patch)
treef7a2e0e741c0e97a1d1da5092b854e7969afbb12 /source
parent3a8c26e832057486f923c1d1f1bfd6da71559dd4 (diff)
downloadsamba-749762a7f809cac50c01a922b58289dee6a7279e.tar.gz
samba-749762a7f809cac50c01a922b58289dee6a7279e.tar.xz
samba-749762a7f809cac50c01a922b58289dee6a7279e.zip
kerberos: fix some heimdal build warnings.
Guenther (cherry picked from commit ce1bea7d692dcf09faafa0941c15313d0d75a9c8)
Diffstat (limited to 'source')
-rw-r--r--source/libads/krb5_setpw.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/libads/krb5_setpw.c b/source/libads/krb5_setpw.c
index be23f417775..ad86f0c3315 100644
--- a/source/libads/krb5_setpw.c
+++ b/source/libads/krb5_setpw.c
@@ -285,7 +285,7 @@ static krb5_error_code parse_setpw_reply(krb5_context context,
return KRB5KRB_AP_ERR_MODIFIED;
}
- p = packet->data;
+ p = (char *)packet->data;
/*
** see if it is an error
*/
@@ -368,7 +368,7 @@ static krb5_error_code parse_setpw_reply(krb5_context context,
return KRB5KRB_AP_ERR_MODIFIED;
}
- p = clearresult.data;
+ p = (char *)clearresult.data;
res_code = RSVAL(p, 0);
@@ -693,10 +693,10 @@ kerb_prompter(krb5_context ctx, void *data,
memset(prompts[0].reply->data, 0, prompts[0].reply->length);
if (prompts[0].reply->length > 0) {
if (data) {
- strncpy(prompts[0].reply->data,
+ strncpy((char *)prompts[0].reply->data,
(const char *)data,
prompts[0].reply->length-1);
- prompts[0].reply->length = strlen(prompts[0].reply->data);
+ prompts[0].reply->length = strlen((const char *)prompts[0].reply->data);
} else {
prompts[0].reply->length = 0;
}