]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hwclock: get/set param cleanup
authorKarel Zak <kzak@redhat.com>
Mon, 31 Jan 2022 09:05:29 +0000 (10:05 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 31 Jan 2022 09:05:29 +0000 (10:05 +0100)
commit511a512611bfc0bc740b2e698ef0c7ae5e56891a
tree9d932183ab2dcdaed1940b44a06fa9032b19f926
parent63d8183479e0ccfe5ed46033413ec52880aa2b39
hwclock: get/set param cleanup

* move all code to hwclock-rtc.c
* use ul_strtou64() to simplify code
* use base=0 for ul_strtou64() to handle 10 and 16 base
* allocate for strtok() (we keep command line options read-only)

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/hwclock-rtc.c
sys-utils/hwclock.c
sys-utils/hwclock.h