wmaker: Removed explicit callback type conversion
commit6948a9f2feb27c309cde613f6fb2369374e1df4b
authorChristophe CURIS <christophe.curis@free.fr>
Sun, 13 Oct 2013 20:44:09 +0000 (13 22:44 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 13 Oct 2013 22:00:19 +0000 (13 23:00 +0100)
tree8dc7e809b7536ca92a4ff619aa22d57df1d4cef0
parentfd10d4069f6b52dba296e6c6db687f4282f1989f
wmaker: Removed explicit callback type conversion

It is dangerous to use a function that does not use the same prototype as
expected by the callback, because that mean there is conversion performed
for the arguments, on which the compiler has no possibility to report
problems.

It is safer to create the function with the strict argument list, and
insert an  explicit type conversion for which the compiler will be able
to perform compatibility checks, and include optional code when needed.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
src/winspector.c