- Fixed formatting of the (void) casts
- Moved variable declaration closer to where it's used
- Removed unneeded includes