From 32a7fe3fec4290fba52c73aeebfebb8ac6f3dad3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Fri, 3 Apr 2015 17:41:31 +0200 Subject: [PATCH] Fix bug in POLARSSL_PLATFORM_STD_EXIT support --- library/platform.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/platform.c b/library/platform.c index a161bc3ea..4afe8b74b 100644 --- a/library/platform.c +++ b/library/platform.c @@ -141,7 +141,7 @@ int platform_set_fprintf( int (*fprintf_func)( FILE *, const char *, ... ) ) #endif /* POLARSSL_PLATFORM_FPRINTF_ALT */ #if defined(POLARSSL_PLATFORM_EXIT_ALT) -#if !defined(POLARSSL_STD_EXIT) +#if !defined(POLARSSL_PLATFORM_STD_EXIT) /* * Make dummy function to prevent NULL pointer dereferences */ @@ -151,10 +151,10 @@ static void platform_exit_uninit( int status ) return( 0 ); } -#define POLARSSL_STD_EXIT platform_exit_uninit -#endif /* !POLARSSL_STD_EXIT */ +#define POLARSSL_PLATFORM_STD_EXIT platform_exit_uninit +#endif /* !POLARSSL_PLATFORM_STD_EXIT */ -int (*polarssl_exit)( int status ) = POLARSSL_STD_EXIT; +int (*polarssl_exit)( int status ) = POLARSSL_PLATFORM_STD_EXIT; int platform_set_exit( void (*exit_func)( int status ) ) {