Fix compilation errors.
Beautfiy code with uncrustify code formatter.