Instead of forcibly cast functions cast only if data pointer and function pointers match. This also allows to remove dangerous casts all over the place. Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>