]> git.ipfire.org Git - thirdparty/util-linux.git/commit
dmesg: fix shadow declaration
authorSami Kerola <kerolasa@iki.fi>
Sun, 22 Mar 2015 23:05:26 +0000 (23:05 +0000)
committerKarel Zak <kzak@redhat.com>
Mon, 23 Mar 2015 09:34:49 +0000 (10:34 +0100)
commitf1300e2cea31d6232783dafb97b7c600d48823e8
tree09724195930e1a652a7e0effd44121475fbcedee
parentf0f22e9c6f109f8c1234caa3173368ef43b023eb
dmesg: fix shadow declaration

sys-utils/dmesg.c:650:9: warning: declaration of 's' shadows a previous local [-Wshadow]
sys-utils/dmesg.c:619:12: warning: shadowed declaration is here [-Wshadow]

And since the code had to be touched deprecate loop printing one character
at a time, in favour of printf and instruction to repeat spaces the number
required.

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