WINGs: Removed cast to change function prototype

When a function is used as a call-back, it is dangerous to have
arguments with a type different than what is expected by the
call-back definition.

This patch sets the argument list to match what is expected by
the call-back prototype and inserts an explicit type conversion
at the beginning of the function.
This commit is contained in:
Christophe CURIS authored and Carlos R. Mafra committed 2013-05-12 01:01:20 +01:00
1 parent bab90b2168
commit e2d816c7a2
5 files changed
+26 -21

No files matched your search

+1 -1
View File
@@ -52,7 +52,7 @@ static void defaultHandler(int bla)
exit(1);
}
static waborthandler *aborthandler = (waborthandler *) defaultHandler;
static waborthandler *aborthandler = defaultHandler;
#define wAbort(a) (*aborthandler)(a)