Fix bad return values.

That's what happens when you start coding a function one day and
finish it the next one :-). The values being returned did not match
those in the documentation.

Signed-off-by: Weland Treebark <weland@blinkenshell.org>