]> git.ipfire.org Git - thirdparty/util-linux.git/commit
mkfs.cramfs: check blocksize user input [cppcheck]
authorSami Kerola <kerolasa@iki.fi>
Tue, 7 Feb 2012 20:10:33 +0000 (21:10 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 8 Feb 2012 11:46:11 +0000 (12:46 +0100)
commit2e24868683ad405ed73aac7654730bbf1038087d
treecac516e1694acce46c81e54aad84bc815d8817eb
parent33f28cd7a72509a0a0ceb2ca4da6bdb33bea65e8
mkfs.cramfs: check blocksize user input [cppcheck]

Enhance user input checking and error messaging, while fixing
cppcheck warning.

[disk-utils/mkfs.cramfs.c:729]: (style) Checking if unsigned variable 'blksize' is less than zero.

[kzak@redhat.com: fix coding style]

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