Remove deprecated register keyword
Clarify parenthesis situation in locking.h
Remove unused pointer
Remove unused result var
The standard assumes hash to be a struct
Add miniscule error handling to prevent non-void return
Remove unused param that issues a warning
Merge pull request #149 from bastih/master

A bunch of cleanups