Use reference to stats, not a pointer

This was some weird nonstandard stuff stolen from sphia(1).
No need for errno checks
Merge pull request #35 from sphia/cleanup-purge-tests

Use reference to stats, not a pointer