summaryrefslogtreecommitdiff
path: root/source3/libads/sasl.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-05-05 14:36:55 -0700
committerJeremy Allison <jra@samba.org>2011-05-05 23:56:08 +0200
commitf85e095dd29638dcb4819f60a7239bc37e8a41ca (patch)
treec70e7a3229463d2af4a0a38a033145f46c1889bb /source3/libads/sasl.c
parent02af3075858814811bc30f03623eb6715f9b7a78 (diff)
downloadsamba-f85e095dd29638dcb4819f60a7239bc37e8a41ca.tar.gz
samba-f85e095dd29638dcb4819f60a7239bc37e8a41ca.tar.bz2
samba-f85e095dd29638dcb4819f60a7239bc37e8a41ca.zip
More simple const fixups.
Diffstat (limited to 'source3/libads/sasl.c')
-rw-r--r--source3/libads/sasl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libads/sasl.c b/source3/libads/sasl.c
index e7daa8aec6..8b2dbad434 100644
--- a/source3/libads/sasl.c
+++ b/source3/libads/sasl.c
@@ -388,7 +388,7 @@ static ADS_STATUS ads_sasl_spnego_gsskrb5_bind(ADS_STRUCT *ads, const gss_name_t
uint32 minor_status;
int gss_rc, rc;
gss_OID_desc krb5_mech_type =
- {9, CONST_DISCARD(char *, "\x2a\x86\x48\x86\xf7\x12\x01\x02\x02") };
+ {9, discard_const_p(char, "\x2a\x86\x48\x86\xf7\x12\x01\x02\x02") };
gss_OID mech_type = &krb5_mech_type;
gss_OID actual_mech_type = GSS_C_NULL_OID;
const char *spnego_mechs[] = {OID_KERBEROS5_OLD, OID_KERBEROS5, OID_NTLMSSP, NULL};
@@ -722,7 +722,7 @@ static ADS_STATUS ads_generate_service_principal(ADS_STRUCT *ads,
gss_buffer_desc input_name;
/* GSS_KRB5_NT_PRINCIPAL_NAME */
gss_OID_desc nt_principal =
- {10, CONST_DISCARD(char *, "\x2a\x86\x48\x86\xf7\x12\x01\x02\x02\x01")};
+ {10, discard_const_p(char, "\x2a\x86\x48\x86\xf7\x12\x01\x02\x02\x01")};
uint32 minor_status;
int gss_rc;
#endif