aboutsummaryrefslogtreecommitdiff
path: root/sbin/adjkerntz/adjkerntz.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1994-12-12 05:48:45 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1994-12-12 05:48:45 +0000
commit882588f86c70fea22f58998596918bb9d300b8a0 (patch)
treefc3d96e817f2d0e3714982507f16e9cab14f4d60 /sbin/adjkerntz/adjkerntz.c
parent408399029a054bfaa059bfc52c5424aaf14ada32 (diff)
downloadsrc-882588f86c70fea22f58998596918bb9d300b8a0.tar.gz
src-882588f86c70fea22f58998596918bb9d300b8a0.zip
Fix resetting adjkerntz to 0 (pointed by Bruce),
forget to initialize mib variable.
Notes
Notes: svn path=/head/; revision=5078
Diffstat (limited to 'sbin/adjkerntz/adjkerntz.c')
-rw-r--r--sbin/adjkerntz/adjkerntz.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/adjkerntz/adjkerntz.c b/sbin/adjkerntz/adjkerntz.c
index 7716f2abe8ca..0a0d4a3f6711 100644
--- a/sbin/adjkerntz/adjkerntz.c
+++ b/sbin/adjkerntz/adjkerntz.c
@@ -254,6 +254,8 @@ again:
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) {