forked from wolfSSL/wolfssl
Set explicit conversion
This commit is contained in:
@ -54963,7 +54963,7 @@ int wolfSSL_CONF_cmd(WOLFSSL_CONF_CTX* cctx, const char* cmd, const char* value)
|
|||||||
port = XSTRSTR(str, ":");
|
port = XSTRSTR(str, ":");
|
||||||
|
|
||||||
if (port != NULL)
|
if (port != NULL)
|
||||||
bio->port = XATOI(port + 1);
|
bio->port = (word16)XATOI(port + 1);
|
||||||
else
|
else
|
||||||
port = str + XSTRLEN(str); /* point to null terminator */
|
port = str + XSTRLEN(str); /* point to null terminator */
|
||||||
|
|
||||||
@ -54988,7 +54988,7 @@ int wolfSSL_CONF_cmd(WOLFSSL_CONF_CTX* cctx, const char* cmd, const char* value)
|
|||||||
WOLFSSL_ENTER("wolfSSL_BIO_new_accept");
|
WOLFSSL_ENTER("wolfSSL_BIO_new_accept");
|
||||||
bio = wolfSSL_BIO_new(wolfSSL_BIO_s_socket());
|
bio = wolfSSL_BIO_new(wolfSSL_BIO_s_socket());
|
||||||
if (bio) {
|
if (bio) {
|
||||||
bio->port = XATOI(port);
|
bio->port = (word16)XATOI(port);
|
||||||
bio->type = WOLFSSL_BIO_SOCKET;
|
bio->type = WOLFSSL_BIO_SOCKET;
|
||||||
}
|
}
|
||||||
return bio;
|
return bio;
|
||||||
|
Reference in New Issue
Block a user