]> git.ipfire.org Git - thirdparty/util-linux.git/commit
mkswap: various minor improvement
authorSami Kerola <kerolasa@iki.fi>
Sun, 2 Nov 2014 20:26:31 +0000 (20:26 +0000)
committerKarel Zak <kzak@redhat.com>
Fri, 7 Nov 2014 12:21:06 +0000 (13:21 +0100)
commitd68f402c5406edf2b5680b1fa716835f947e0947
treed09b66180cde12eed359ae0ad23976f0c7efb88f
parent076ba5a6967d8509da25e0a426ea65ac3f61473e
mkswap: various minor improvement

Use correct data type in page_bad(), and add information to error message
how many bad pages were seen.

In check_blocks() move initialization to variable introduction, fix typo,
and avoid memset() when array initializer can do the job.

In main() use correct initializer for pointer.  Move swap file specific
actions to same location, and add warning when request too --check is
dismissed by command.  At the end remove momory leak.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
disk-utils/mkswap.c