summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-09-29 06:44:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:31:04 -0500
commitb12e11f29f7b6f02960c1f87cb87c0341403246c (patch)
treead5bab83a7b5c10cd88ac2c85cd67f9a613a18d4 /source3
parent4802b2d6ca375723ecae12d6940efa6186520e79 (diff)
downloadsamba-b12e11f29f7b6f02960c1f87cb87c0341403246c.tar.gz
samba-b12e11f29f7b6f02960c1f87cb87c0341403246c.tar.bz2
samba-b12e11f29f7b6f02960c1f87cb87c0341403246c.zip
r25422: Get rid of some cast warnings.
(This used to be commit 3e155b249e03cc9f7bd0cbf3a3ab8a57536bf0ce)
Diffstat (limited to 'source3')
-rw-r--r--source3/libads/sasl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/libads/sasl.c b/source3/libads/sasl.c
index dec8756a86..d5eeb8e2b3 100644
--- a/source3/libads/sasl.c
+++ b/source3/libads/sasl.c
@@ -268,7 +268,7 @@ static ADS_STATUS ads_sasl_spnego_ntlmssp_bind(ADS_STRUCT *ads)
#ifdef HAVE_GSSAPI
static ADS_STATUS ads_sasl_gssapi_wrap(ADS_STRUCT *ads, uint8 *buf, uint32 len)
{
- gss_ctx_id_t context_handle = ads->ldap.wrap_private_data;
+ gss_ctx_id_t context_handle = (gss_ctx_id_t)ads->ldap.wrap_private_data;
ADS_STATUS status;
int gss_rc;
uint32 minor_status;
@@ -309,7 +309,7 @@ static ADS_STATUS ads_sasl_gssapi_wrap(ADS_STRUCT *ads, uint8 *buf, uint32 len)
static ADS_STATUS ads_sasl_gssapi_unwrap(ADS_STRUCT *ads)
{
- gss_ctx_id_t context_handle = ads->ldap.wrap_private_data;
+ gss_ctx_id_t context_handle = (gss_ctx_id_t)ads->ldap.wrap_private_data;
ADS_STATUS status;
int gss_rc;
uint32 minor_status;
@@ -347,7 +347,7 @@ static ADS_STATUS ads_sasl_gssapi_unwrap(ADS_STRUCT *ads)
static void ads_sasl_gssapi_disconnect(ADS_STRUCT *ads)
{
- gss_ctx_id_t context_handle = ads->ldap.wrap_private_data;
+ gss_ctx_id_t context_handle = (gss_ctx_id_t)ads->ldap.wrap_private_data;
uint32 minor_status;
gss_delete_sec_context(&minor_status, &context_handle, GSS_C_NO_BUFFER);