Fix return value type

Signed-off-by: Michal Čihař <michal@cihar.com>
Fix return value types

Signed-off-by: Michal Čihař <michal@cihar.com>