]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libfrog: don't set negative errno in conversion functions
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 25 Jun 2019 21:04:42 +0000 (17:04 -0400)
committerEric Sandeen <sandeen@redhat.com>
Tue, 25 Jun 2019 21:04:42 +0000 (17:04 -0400)
commitb6ad9957a3e2c8d486a3efd37c2785c757edc25e
tree77eca1e4fd2a703f3aeeb76b74f6b3dd5a84e942
parente0bdad06fb0631e86d8d268e1d467abd87b86674
libfrog: don't set negative errno in conversion functions

Don't set errno to a negative value when we're converting integers.
That's a kernel thing; this is userspace.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libfrog/convert.c