Fix resetting adjkerntz to 0 (pointed by Bruce),
forget to initialize mib variable.
This commit is contained in:
parent
408399029a
commit
882588f86c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5078
@ -254,6 +254,8 @@ int main(argc, argv)
|
|||||||
|
|
||||||
if (need_restore) {
|
if (need_restore) {
|
||||||
need_restore = 0;
|
need_restore = 0;
|
||||||
|
mib[0] = CTL_MACHDEP;
|
||||||
|
mib[1] = CPU_DISRTCSET;
|
||||||
disrtcset = 0;
|
disrtcset = 0;
|
||||||
len = sizeof(disrtcset);
|
len = sizeof(disrtcset);
|
||||||
if (sysctl(mib, 2, NULL, NULL, &disrtcset, len) == -1) {
|
if (sysctl(mib, 2, NULL, NULL, &disrtcset, len) == -1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user