- Added fixes for compiler warnings on a Mac

This commit is contained in:
Paul Bakker 2010-03-16 21:16:16 +00:00
parent f80d4539d1
commit 4ed999c4b2
3 changed files with 5 additions and 3 deletions

View file

@ -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

View file

@ -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 );

View file

@ -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 );