fix most splint errors
nuke these, even though they make splint whine
Merge pull request #6 from CodeBlock/splint

Splint Excellent work.