fix the code style of function definition
fix code style warnings
Merge pull request #461 from xmujay/0624

fix the code style of function definition