Fixes to previous commit.

- Unused variables.
- Missing prototype.