use int as return type

Signed-off-by: Sven Strickroth <email@cs-ware.de>