[FIX, STYLE] corrected style and some c11 warnings