diff --git a/programs/test/selftest.c b/programs/test/selftest.c index 727054ee6..869c7b6b1 100644 --- a/programs/test/selftest.c +++ b/programs/test/selftest.c @@ -417,7 +417,5 @@ int main( int argc, char *argv[] ) if( suites_failed > 0) mbedtls_exit( MBEDTLS_EXIT_FAILURE ); - /* return() is here to prevent compiler warnings */ - return( MBEDTLS_EXIT_SUCCESS ); + mbedtls_exit( MBEDTLS_EXIT_SUCCESS ); } -