darwinssl: Fix implicit conversion compiler warnings
The Clang compiler found a few implicit conversion problems that have now been fixed.
This commit is contained in:
Родитель
0e8e340cba
Коммит
bbb4bbc0f1
|
@ -75,15 +75,15 @@ static OSStatus SocketRead(SSLConnectionRef connection,
|
||||||
* RETURNED */
|
* RETURNED */
|
||||||
size_t *dataLength) /* IN/OUT */
|
size_t *dataLength) /* IN/OUT */
|
||||||
{
|
{
|
||||||
UInt32 bytesToGo = *dataLength;
|
size_t bytesToGo = *dataLength;
|
||||||
UInt32 initLen = bytesToGo;
|
size_t initLen = bytesToGo;
|
||||||
UInt8 *currData = (UInt8 *)data;
|
UInt8 *currData = (UInt8 *)data;
|
||||||
/*int sock = *(int *)connection;*/
|
/*int sock = *(int *)connection;*/
|
||||||
struct ssl_connect_data *connssl = (struct ssl_connect_data *)connection;
|
struct ssl_connect_data *connssl = (struct ssl_connect_data *)connection;
|
||||||
int sock = connssl->ssl_sockfd;
|
int sock = connssl->ssl_sockfd;
|
||||||
OSStatus rtn = noErr;
|
OSStatus rtn = noErr;
|
||||||
UInt32 bytesRead;
|
size_t bytesRead;
|
||||||
int rrtn;
|
ssize_t rrtn;
|
||||||
int theErr;
|
int theErr;
|
||||||
|
|
||||||
*dataLength = 0;
|
*dataLength = 0;
|
||||||
|
@ -137,12 +137,12 @@ static OSStatus SocketWrite(SSLConnectionRef connection,
|
||||||
const void *data,
|
const void *data,
|
||||||
size_t *dataLength) /* IN/OUT */
|
size_t *dataLength) /* IN/OUT */
|
||||||
{
|
{
|
||||||
UInt32 bytesSent = 0;
|
size_t bytesSent = 0;
|
||||||
/*int sock = *(int *)connection;*/
|
/*int sock = *(int *)connection;*/
|
||||||
struct ssl_connect_data *connssl = (struct ssl_connect_data *)connection;
|
struct ssl_connect_data *connssl = (struct ssl_connect_data *)connection;
|
||||||
int sock = connssl->ssl_sockfd;
|
int sock = connssl->ssl_sockfd;
|
||||||
int length;
|
ssize_t length;
|
||||||
UInt32 dataLen = *dataLength;
|
size_t dataLen = *dataLength;
|
||||||
const UInt8 *dataPtr = (UInt8 *)data;
|
const UInt8 *dataPtr = (UInt8 *)data;
|
||||||
OSStatus ortn;
|
OSStatus ortn;
|
||||||
int theErr;
|
int theErr;
|
||||||
|
@ -1327,7 +1327,7 @@ void Curl_darwinssl_md5sum(unsigned char *tmp, /* input */
|
||||||
size_t md5len)
|
size_t md5len)
|
||||||
{
|
{
|
||||||
(void)md5len;
|
(void)md5len;
|
||||||
(void)CC_MD5(tmp, tmplen, md5sum);
|
(void)CC_MD5(tmp, (CC_LONG)tmplen, md5sum);
|
||||||
}
|
}
|
||||||
|
|
||||||
static ssize_t darwinssl_send(struct connectdata *conn,
|
static ssize_t darwinssl_send(struct connectdata *conn,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче