aboutsummaryrefslogtreecommitdiff
path: root/sbin/adjkerntz/adjkerntz.c
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2006-05-13 11:58:58 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2006-05-13 11:58:58 +0000
commit564084e48903bdb4238522bdbb3d51fad2d2cff0 (patch)
tree22efb7e9becea771996939ecdb8bd9b26ee40783 /sbin/adjkerntz/adjkerntz.c
parent4c4090f533441757f24c53293f16e5b750dc165b (diff)
downloadsrc-564084e48903bdb4238522bdbb3d51fad2d2cff0.tar.gz
src-564084e48903bdb4238522bdbb3d51fad2d2cff0.zip
Correct various mistakes in the last commit.
Notes
Notes: svn path=/head/; revision=158516
Diffstat (limited to 'sbin/adjkerntz/adjkerntz.c')
-rw-r--r--sbin/adjkerntz/adjkerntz.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/adjkerntz/adjkerntz.c b/sbin/adjkerntz/adjkerntz.c
index 9174f2af861f..86f2f69f6f26 100644
--- a/sbin/adjkerntz/adjkerntz.c
+++ b/sbin/adjkerntz/adjkerntz.c
@@ -285,14 +285,14 @@ recalculate:
) {
len = sizeof(disrtcset);
if (sysctlbyname("machdep.disable_rtc_set", &disrtcset, &len, NULL, 0) == -1) {
- syslog(LOG_ERR, "sysctl(get: \"disable_rtc_set\"): %m");
+ syslog(LOG_ERR, "sysctl(get: \"machdep.disable_rtc_set\"): %m");
return 1;
}
if (disrtcset == 0) {
disrtcset = 1;
need_restore = True;
- if (sysctlbyname("disable_rtc_set", NULL, NULL, &disrtcset, len) == -1) {
- syslog(LOG_ERR, "sysctl(set: \"disable_rtc_set\"): %m");
+ if (sysctlbyname("machdep.disable_rtc_set", NULL, NULL, &disrtcset, len) == -1) {
+ syslog(LOG_ERR, "sysctl(set: \"machdep.disable_rtc_set\"): %m");
return 1;
}
}
@@ -330,7 +330,7 @@ recalculate:
kern_offset = offset;
len = sizeof(kern_offset);
if (sysctlbyname("machdep.adjkerntz", NULL, NULL, &kern_offset, len) == -1) {
- syslog(LOG_ERR, "sysctl(set: \"disable_rtc_set\"): %m");
+ syslog(LOG_ERR, "sysctl(set: \"machdep.adjkerntz\"): %m");
return 1;
}
}