]> err.no Git - util-linux/commitdiff
libmount: cleanup return codes (iter.c)
authorKarel Zak <kzak@redhat.com>
Wed, 25 Aug 2010 08:55:10 +0000 (10:55 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 3 Jan 2011 11:28:41 +0000 (12:28 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/mount/src/iter.c

index 5c02c2a785781b3a21660b030ddb89f6c393a90b..cb74eecade704d537410e16383d4716c83cf6fa2 100644 (file)
@@ -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;
 }