]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fsck: use xmalloc, warn & err and new usage
authorSami Kerola <kerolasa@iki.fi>
Wed, 16 Feb 2011 14:20:11 +0000 (15:20 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 16 Feb 2011 14:20:11 +0000 (15:20 +0100)
commit0a09eb4efcc9704cf757118cbec86f7783223746
treecf2ae3d60d37b6d8fc3dd053aa58138e7870cccf
parent47a4b840c35b8cfe29ee5085d8e42c56cb90d2bf
fsck: use xmalloc, warn & err and new usage

All compler errors reported by -Wall -Wextra -pedantic are fixed.

The patch also makes fsck to use xalloc instead of it's own malloc.
That will make fsck to exit, which could be good thing, at sections
where it previously did not.

Almost all print outs where touched, where various printfs where
converted to warn or err messages.

Finally theres a fix to counter wrap bug that could (very unlikely)
manifest itself if an user specifies same flag exactly UINT_MAX times.

[kzak@redhat.com: - coding style
                  - define XALLOC_EXIT_CODE
                  - use verbose++ in main()]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
fsck/fsck.c