Markus Armbruster <arm...@redhat.com> wrote:
> Several functions return negative errno codes on failure.  Callers
> check for specific codes exactly never.  For some of the functions,
> callers couldn't check even if they wanted to, because the functions
> also return negative values that aren't errno codes, leaving readers
> confused on what the function actually returns.
>
> Clean up and simplify: return -1 instead of negative errno code.
>
> Signed-off-by: Markus Armbruster <arm...@redhat.com>
> Reviewed-by: Li Zhijian <lizhij...@fujitsu.com>

Reviewed-by: Juan Quintela <quint...@redhat.com>


Reply via email to