summaryrefslogtreecommitdiff
path: root/source4/heimdal
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-02-18 23:56:19 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:48:35 -0500
commitf280849a6f45c563ca5beb6afe1dcf0bbba8f4e3 (patch)
tree0739f6255733715288b3c6b379df0fed2d81536e /source4/heimdal
parent837f283f813a98a321d193a3d5c9ce8c8ea72a0a (diff)
downloadsamba-f280849a6f45c563ca5beb6afe1dcf0bbba8f4e3.tar.gz
samba-f280849a6f45c563ca5beb6afe1dcf0bbba8f4e3.tar.bz2
samba-f280849a6f45c563ca5beb6afe1dcf0bbba8f4e3.zip
r21439: fix compiler warnings
metze (This used to be commit ac347d7aa588574f6a18229083569608327874d8)
Diffstat (limited to 'source4/heimdal')
-rw-r--r--source4/heimdal/kdc/kerberos5.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/heimdal/kdc/kerberos5.c b/source4/heimdal/kdc/kerberos5.c
index 0cac0765ca..dbea7e3268 100644
--- a/source4/heimdal/kdc/kerberos5.c
+++ b/source4/heimdal/kdc/kerberos5.c
@@ -430,7 +430,7 @@ get_pa_etype_info(krb5_context context,
char *name;
ret = krb5_unparse_name(context, client->principal, &name);
if (ret)
- name = "<unparse_name failed>";
+ name = rk_UNCONST("<unparse_name failed>");
kdc_log(context, config, 0, "internal error in get_pa_etype_info(%s): %d != %d",
name, n, pa.len);
if (ret == 0)
@@ -610,7 +610,7 @@ get_pa_etype_info2(krb5_context context,
char *name;
ret = krb5_unparse_name(context, client->principal, &name);
if (ret)
- name = "<unparse_name failed>";
+ name = rk_UNCONST("<unparse_name failed>");
kdc_log(context, config, 0,
"internal error in get_pa_etype_info2(%s): %d != %d",
name, n, pa.len);
@@ -689,11 +689,11 @@ log_as_req(krb5_context context,
}
{
- char str[128];
+ char _str[128];
unparse_flags(KDCOptions2int(b->kdc_options), asn1_KDCOptions_units(),
- str, sizeof(str));
- if(*str)
- kdc_log(context, config, 2, "Requested flags: %s", str);
+ _str, sizeof(_str));
+ if(*_str)
+ kdc_log(context, config, 2, "Requested flags: %s", _str);
}
}