fix Linux cast warning
This commit is contained in:
parent
98b6c9b89e
commit
cce759b8dd
@ -342,7 +342,7 @@ namespace ix
|
|||||||
|
|
||||||
ERR_clear_error();
|
ERR_clear_error();
|
||||||
ssize_t write_result = SSL_write(_ssl_connection, buf + sent, (int) nbyte);
|
ssize_t write_result = SSL_write(_ssl_connection, buf + sent, (int) nbyte);
|
||||||
int reason = SSL_get_error(_ssl_connection, write_result);
|
int reason = SSL_get_error(_ssl_connection, (int) write_result);
|
||||||
|
|
||||||
if (reason == SSL_ERROR_NONE) {
|
if (reason == SSL_ERROR_NONE) {
|
||||||
nbyte -= write_result;
|
nbyte -= write_result;
|
||||||
@ -382,7 +382,7 @@ namespace ix
|
|||||||
return read_result;
|
return read_result;
|
||||||
}
|
}
|
||||||
|
|
||||||
int reason = SSL_get_error(_ssl_connection, read_result);
|
int reason = SSL_get_error(_ssl_connection, (int) read_result);
|
||||||
|
|
||||||
if (reason == SSL_ERROR_WANT_READ || reason == SSL_ERROR_WANT_WRITE)
|
if (reason == SSL_ERROR_WANT_READ || reason == SSL_ERROR_WANT_WRITE)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user