]> 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>
Wed, 29 Apr 2015 10:22:44 +0000 (12:22 +0200)
commita4f1ef7e826c06e0d9bbc7651423b88808b41c06
treeb4944f9365c763d2f5e8a1211bd37b0a7a4372a0
parent57c0ec30e94aee8a7d81983bb57c9a1393599a71
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