C89 fix (declaration after statement).
Add .gitignore.