diff --git a/programs/ssl/ssl_client2.c b/programs/ssl/ssl_client2.c index 6a377bd1c..c34390f88 100644 --- a/programs/ssl/ssl_client2.c +++ b/programs/ssl/ssl_client2.c @@ -2761,7 +2761,7 @@ int main( int argc, char *argv[] ) != 0 ) { mbedtls_printf( " failed\n ! mbedtls_ssl_tls_prf returned -0x%x\n\n", - -ret ); + (unsigned int) -ret ); goto exit; } diff --git a/programs/ssl/ssl_server2.c b/programs/ssl/ssl_server2.c index 93fea686c..dd365b7f0 100644 --- a/programs/ssl/ssl_server2.c +++ b/programs/ssl/ssl_server2.c @@ -3872,7 +3872,7 @@ handshake: != 0 ) { mbedtls_printf( " failed\n ! mbedtls_ssl_tls_prf returned -0x%x\n\n", - -ret ); + (unsigned int) -ret ); goto exit; }