]> git.ipfire.org Git - thirdparty/util-linux.git/commit
blkreport, blkreset: small code clean ups
authorSami Kerola <kerolasa@iki.fi>
Sat, 11 Feb 2017 14:10:50 +0000 (14:10 +0000)
committerKarel Zak <kzak@redhat.com>
Mon, 13 Feb 2017 13:14:28 +0000 (14:14 +0100)
commitee8268c2455182d62fb6533952607816e4197692
treeebbdf15162eb063e086f4b72e9c5d21958f86d18
parenta7349ee315a2f6b0d2d9d7d3446fc2baaca5e78b
blkreport, blkreset: small code clean ups

Set variables read-only where possible.  Fix few code style issues, mostly
with spacing.  Avoid initializing variables if they are never read before
next update.  Remove "ERR: %d -> %s" message that repeated system error
three times, twice in that message and once at end of main that is the only
of these three left in place.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sys-utils/blkreport.c
sys-utils/blkreset.c