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:
parent
beec142010
commit
5e1b195d1f
44 changed files with 102 additions and 101 deletions
programs/test
|
@ -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[] )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue