r23953: Some C++ warnings
authorVolker Lendecke <vlendec@samba.org>
Wed, 18 Jul 2007 12:28:32 +0000 (12:28 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:28:49 +0000 (12:28 -0500)
source/libads/sasl.c
source/libads/sasl_wrapping.c

index f423464a07ef6a0dbcb968940151a56441adf4bc..a3636ec2beb71341ad2084da53458d6e0300d89c 100644 (file)
@@ -23,7 +23,8 @@
 
 static ADS_STATUS ads_sasl_ntlmssp_wrap(ADS_STRUCT *ads, uint8 *buf, uint32 len)
 {
-       struct ntlmssp_state *ntlmssp_state = ads->ldap.wrap_private_data;
+       struct ntlmssp_state *ntlmssp_state =
+               (struct ntlmssp_state *)ads->ldap.wrap_private_data;
        ADS_STATUS status;
        NTSTATUS nt_status;
        DATA_BLOB sig;
@@ -61,7 +62,8 @@ static ADS_STATUS ads_sasl_ntlmssp_wrap(ADS_STRUCT *ads, uint8 *buf, uint32 len)
 
 static ADS_STATUS ads_sasl_ntlmssp_unwrap(ADS_STRUCT *ads)
 {
-       struct ntlmssp_state *ntlmssp_state = ads->ldap.wrap_private_data;
+       struct ntlmssp_state *ntlmssp_state =
+               (struct ntlmssp_state *)ads->ldap.wrap_private_data;
        ADS_STATUS status;
        NTSTATUS nt_status;
        DATA_BLOB sig;
@@ -95,7 +97,8 @@ static ADS_STATUS ads_sasl_ntlmssp_unwrap(ADS_STRUCT *ads)
 
 static void ads_sasl_ntlmssp_disconnect(ADS_STRUCT *ads)
 {
-       struct ntlmssp_state *ntlmssp_state = ads->ldap.wrap_private_data;
+       struct ntlmssp_state *ntlmssp_state =
+               (struct ntlmssp_state *)ads->ldap.wrap_private_data;
 
        ntlmssp_end(&ntlmssp_state);
 
index 931273f40c0304711d66992fec4dce42d0ee0d17..c620aae7ac37a5687b1371376de23cf86cda6b85 100644 (file)
@@ -213,7 +213,7 @@ static ber_slen_t ads_saslwrap_write(Sockbuf_IO_Desc *sbiod, void *buf, ber_len_
                ret = ads_saslwrap_prepare_outbuf(ads, rlen);
                if (ret < 0) return ret;
                
-               status = ads->ldap.wrap_ops->wrap(ads, buf, rlen);
+               status = ads->ldap.wrap_ops->wrap(ads, (uint8 *)buf, rlen);
                if (!ADS_ERR_OK(status)) {
                        errno = EACCES;
                        return -1;