From 249bece013013029ef305c8c7b78886eeb366f66 Mon Sep 17 00:00:00 2001 From: ptahpeteh Date: Tue, 2 Jun 2015 15:26:09 +0200 Subject: [PATCH] Fix compile bug: incompatible declaration of polarssl_exit in platform.c This causes a compile-time error: platform.c(157): error: #147: declaration is incompatible with "void (*polarssl_exit)(int)" (declared at line 179 of "platform.h") --- library/platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/platform.c b/library/platform.c index 4afe8b74b..96f2a9d96 100644 --- a/library/platform.c +++ b/library/platform.c @@ -154,7 +154,7 @@ static void platform_exit_uninit( int status ) #define POLARSSL_PLATFORM_STD_EXIT platform_exit_uninit #endif /* !POLARSSL_PLATFORM_STD_EXIT */ -int (*polarssl_exit)( int status ) = POLARSSL_PLATFORM_STD_EXIT; +void (*polarssl_exit)( int status ) = POLARSSL_PLATFORM_STD_EXIT; int platform_set_exit( void (*exit_func)( int status ) ) {