mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-10-18 14:31:21 +00:00
- Added fixes for compiler warnings on a Mac
This commit is contained in:
parent
f80d4539d1
commit
4ed999c4b2
|
@ -11,6 +11,7 @@ Bug fixes
|
||||||
* Fixed bug resulting in failure to send the last
|
* Fixed bug resulting in failure to send the last
|
||||||
certificate in the chain in ssl_write_certificate() and
|
certificate in the chain in ssl_write_certificate() and
|
||||||
ssl_write_certificate_request() (Found by fatbob)
|
ssl_write_certificate_request() (Found by fatbob)
|
||||||
|
* Added small fixes for compiler warnings on a Mac
|
||||||
|
|
||||||
= Version 0.12.1 released on 2009-10-04
|
= Version 0.12.1 released on 2009-10-04
|
||||||
Changes
|
Changes
|
||||||
|
|
|
@ -139,8 +139,9 @@ void debug_print_mpi( const ssl_context *ssl, int level,
|
||||||
if( X->p[n] != 0 )
|
if( X->p[n] != 0 )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
snprintf( str, maxlen, "%s(%04d): value of '%s' (%d bits) is:\n",
|
snprintf( str, maxlen, "%s(%04d): value of '%s' (%lu bits) is:\n",
|
||||||
file, line, text, ((n + 1) * sizeof( t_int )) << 3 );
|
file, line, text,
|
||||||
|
(unsigned long) ((n + 1) * sizeof( t_int )) << 3 );
|
||||||
|
|
||||||
str[maxlen] = '\0';
|
str[maxlen] = '\0';
|
||||||
ssl->f_dbg( ssl->p_dbg, level, str );
|
ssl->f_dbg( ssl->p_dbg, level, str );
|
||||||
|
|
|
@ -226,7 +226,7 @@ int net_accept( int bind_fd, int *client_fd, void *client_ip )
|
||||||
{
|
{
|
||||||
struct sockaddr_in client_addr;
|
struct sockaddr_in client_addr;
|
||||||
|
|
||||||
#if defined(__socklen_t_defined)
|
#if defined(__socklen_t_defined) || defined(_SOCKLEN_T)
|
||||||
socklen_t n = (socklen_t) sizeof( client_addr );
|
socklen_t n = (socklen_t) sizeof( client_addr );
|
||||||
#else
|
#else
|
||||||
int n = (int) sizeof( client_addr );
|
int n = (int) sizeof( client_addr );
|
||||||
|
|
Loading…
Reference in a new issue