Fix coding style

Signed-off-by: Marc Delisle <marc@infomarc.info>
Remove unused code

Signed-off-by: Marc Delisle <marc@infomarc.info>
Fix incorrect parameter type

Signed-off-by: Marc Delisle <marc@infomarc.info>
Fix incorrect parameter type definition

Signed-off-by: Marc Delisle <marc@infomarc.info>