Change the return value of a function to void

This avoids a warning about control reaching the end of a non-void
function.
Merge pull request #6 from mstorsjo/void-return

Change the return value of a function to void