diff options
author | Sami Kerola | 2011-02-16 15:20:11 +0100 |
---|---|---|
committer | Karel Zak | 2011-02-16 15:20:11 +0100 |
commit | 0a09eb4efcc9704cf757118cbec86f7783223746 (patch) | |
tree | cf2ae3d60d37b6d8fc3dd053aa58138e7870cccf /partx/partx.c | |
parent | docs: favour small patches (diff) | |
download | kernel-qcow2-util-linux-0a09eb4efcc9704cf757118cbec86f7783223746.tar.gz kernel-qcow2-util-linux-0a09eb4efcc9704cf757118cbec86f7783223746.tar.xz kernel-qcow2-util-linux-0a09eb4efcc9704cf757118cbec86f7783223746.zip |
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>
Diffstat (limited to 'partx/partx.c')
0 files changed, 0 insertions, 0 deletions