mirror of
https://github.com/espressif/mbedtls.git
synced 2026-10-08 01:57:22 +00:00
Unify the example programs' termination
This is done to account for platforms, for which we want custom behavior upon the program termination, hence we call `mbedtls_exit()` instead of returning from `main()`.
This commit is contained in:
committed by
k-stachowiak
parent
beec142010
commit
5e1b195d1f
@@ -179,7 +179,7 @@ static void exit_usage( const char *name, const char *value )
|
||||
mbedtls_printf( " option %s: illegal value: %s\n", name, value );
|
||||
|
||||
mbedtls_printf( USAGE );
|
||||
exit( 1 );
|
||||
mbedtls_exit( 1 );
|
||||
}
|
||||
|
||||
static void get_options( int argc, char *argv[] )
|
||||
|
||||
Reference in New Issue
Block a user