Fix the function signature
Apparently I just used the error_t type from the stdlib without noticing..