From 5fe6844504a976f0eb430ef8c148a6165074971e Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 25 Aug 2010 10:55:10 +0200 Subject: [PATCH] libmount: cleanup return codes (iter.c) Signed-off-by: Karel Zak --- shlibs/mount/src/iter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shlibs/mount/src/iter.c b/shlibs/mount/src/iter.c index 5c02c2a7..cb74eeca 100644 --- a/shlibs/mount/src/iter.c +++ b/shlibs/mount/src/iter.c @@ -69,10 +69,10 @@ void mnt_reset_iter(mnt_iter *itr, int direction) * mnt_iter_get_direction: * @itr: iterator pointer * - * Returns: MNT_INTER_{FOR,BACK}WARD or -1 in case of error. + * Returns: MNT_INTER_{FOR,BACK}WARD or negative number in case of error. */ int mnt_iter_get_direction(mnt_iter *itr) { assert(itr); - return itr ? itr->direction : -1; + return itr ? itr->direction : -EINVAL; } -- 2.39.5