summaryrefslogtreecommitdiffstats
path: root/shlibs/mount/src/iter.c
diff options
context:
space:
mode:
authorKarel Zak2010-08-25 10:55:10 +0200
committerKarel Zak2011-01-03 12:28:41 +0100
commit5fe6844504a976f0eb430ef8c148a6165074971e (patch)
tree0eea67b5d86013ff05c5b298e623f9c5b50e795b /shlibs/mount/src/iter.c
parentlibmount: cleanup return codes (fs.c) (diff)
downloadkernel-qcow2-util-linux-5fe6844504a976f0eb430ef8c148a6165074971e.tar.gz
kernel-qcow2-util-linux-5fe6844504a976f0eb430ef8c148a6165074971e.tar.xz
kernel-qcow2-util-linux-5fe6844504a976f0eb430ef8c148a6165074971e.zip
libmount: cleanup return codes (iter.c)
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount/src/iter.c')
-rw-r--r--shlibs/mount/src/iter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shlibs/mount/src/iter.c b/shlibs/mount/src/iter.c
index 5c02c2a78..cb74eecad 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;
}