fix splint and coding style

just minor cosmetics