mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-30 19:49:35 -05:00
Silence some typecast warnings
This commit is contained in:
parent
966616b274
commit
e4d8a87ddc
1 changed files with 4 additions and 4 deletions
|
|
@ -478,7 +478,7 @@ sb_tls_bio_read( BIO *b, char *buf, int len )
|
|||
}
|
||||
|
||||
static int
|
||||
sb_tls_bio_write( BIO *b, char *buf, int len )
|
||||
sb_tls_bio_write( BIO *b, const char *buf, int len )
|
||||
{
|
||||
struct tls_data *p;
|
||||
int ret;
|
||||
|
|
@ -491,7 +491,7 @@ sb_tls_bio_write( BIO *b, char *buf, int len )
|
|||
if ( p == NULL || p->sbiod == NULL )
|
||||
return 0;
|
||||
|
||||
ret = LBER_SBIOD_WRITE_NEXT( p->sbiod, buf, len );
|
||||
ret = LBER_SBIOD_WRITE_NEXT( p->sbiod, (char *)buf, len );
|
||||
|
||||
BIO_clear_retry_flags( b );
|
||||
if ( ret < 0 && errno == EWOULDBLOCK )
|
||||
|
|
@ -501,7 +501,7 @@ sb_tls_bio_write( BIO *b, char *buf, int len )
|
|||
}
|
||||
|
||||
static long
|
||||
sb_tls_bio_ctrl( BIO *b, int cmd, long num, char *ptr )
|
||||
sb_tls_bio_ctrl( BIO *b, int cmd, long num, void *ptr )
|
||||
{
|
||||
if ( cmd == BIO_CTRL_FLUSH ) {
|
||||
/* The OpenSSL library needs this */
|
||||
|
|
@ -517,7 +517,7 @@ sb_tls_bio_gets( BIO *b, char *buf, int len )
|
|||
}
|
||||
|
||||
static int
|
||||
sb_tls_bio_puts( BIO *b, char *str )
|
||||
sb_tls_bio_puts( BIO *b, const char *str )
|
||||
{
|
||||
return sb_tls_bio_write( b, str, strlen( str ) );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue