Fix coding style in function definitions