Fix resetting adjkerntz to 0 (pointed by Bruce),

forget to initialize mib variable.
This commit is contained in:
Andrey A. Chernov 1994-12-12 05:48:45 +00:00
parent 408399029a
commit 882588f86c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5078

View File

@ -254,6 +254,8 @@ int main(argc, argv)
if (need_restore) {
need_restore = 0;
mib[0] = CTL_MACHDEP;
mib[1] = CPU_DISRTCSET;
disrtcset = 0;
len = sizeof(disrtcset);
if (sysctl(mib, 2, NULL, NULL, &disrtcset, len) == -1) {