From: Karel Zak Date: Wed, 25 Aug 2010 08:55:10 +0000 (+0200) Subject: libmount: cleanup return codes (iter.c) X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fe6844504a976f0eb430ef8c148a6165074971e;p=util-linux libmount: cleanup return codes (iter.c) Signed-off-by: Karel Zak --- 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; }