Improve code formatting and convert `unsigned int` to `unsigned`.