]> git.sur5r.net Git - openldap/commitdiff
Fix warnings from sasl_errdetail
authorHoward Chu <hyc@openldap.org>
Thu, 18 Apr 2002 12:20:55 +0000 (12:20 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 18 Apr 2002 12:20:55 +0000 (12:20 +0000)
libraries/libldap/cyrus.c

index b411ad5cd82c14d511864793fd77f138b8b778a0..6aa10edfab95dda73727518c358971f589e451c4 100644 (file)
@@ -620,7 +620,7 @@ ldap_int_sasl_bind(
        if ( (saslrc != SASL_OK) && (saslrc != SASL_CONTINUE) ) {
                ld->ld_errno = sasl_err2ldap( saslrc );
 #if SASL_VERSION_MAJOR >= 2
-               ld->ld_error = sasl_errdetail( ctx );
+               ld->ld_error = (char *)sasl_errdetail( ctx );
 #endif
                return ld->ld_errno;
        }
@@ -716,7 +716,7 @@ ldap_int_sasl_bind(
                if ( (saslrc != SASL_OK) && (saslrc != SASL_CONTINUE) ) {
                        ld->ld_errno = sasl_err2ldap( saslrc );
 #if SASL_VERSION_MAJOR >= 2
-                       ld->ld_error = sasl_errdetail( ctx );
+                       ld->ld_error = (char *)sasl_errdetail( ctx );
 #endif
                        return ld->ld_errno;
                }
@@ -728,7 +728,7 @@ ldap_int_sasl_bind(
 
        if ( saslrc != SASL_OK ) {
 #if SASL_VERSION_MAJOR >= 2
-               ld->ld_error = sasl_errdetail( ctx );
+               ld->ld_error = (char *)sasl_errdetail( ctx );
 #endif
                return ld->ld_errno = sasl_err2ldap( saslrc );
        }