]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hwclock: fix hclock_valid test and error messages
authorJ William Piggott <elseifthen@gmx.com>
Wed, 2 Aug 2017 20:06:54 +0000 (16:06 -0400)
committerJ William Piggott <elseifthen@gmx.com>
Fri, 4 Aug 2017 12:57:13 +0000 (08:57 -0400)
commit88d2a1a312445ba1cb540b960e2a9578b170e820
tree66256c830849f49cf15c06bb6f32c52b99fd4f6a
parent4a6f658cb2a881832a4f38385452c427605057b9
hwclock: fix hclock_valid test and error messages

Every hwclock operation that requires reading the RTC, tests
hclock_valid and prints a different warning. This redundancy
is unnecessary.

Move the warning to the RTC read block (the test was moved in
a previous patch in this set). This reduces function arguments
and is a significant code clean up. It will also benefit the
translators.

Signed-off-by: J William Piggott <elseifthen@gmx.com>
sys-utils/hwclock.c