From e9a07759c90c11eedcd100bbf364a9e7ff64d258 Mon Sep 17 00:00:00 2001 From: cgd Date: Sun, 22 Dec 1996 06:23:38 +0000 Subject: [PATCH] ntp_gettime()'s argument is a struct ntptimeval *, not a struct timex * --- sys/kern/kern_ntptime.c | 8 ++++---- sys/kern/syscalls.master | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/kern/kern_ntptime.c b/sys/kern/kern_ntptime.c index cee6c5c64dd0..b24039e423de 100644 --- a/sys/kern/kern_ntptime.c +++ b/sys/kern/kern_ntptime.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_ntptime.c,v 1.4 1996/12/06 20:10:51 thorpej Exp $ */ +/* $NetBSD: kern_ntptime.c,v 1.5 1996/12/22 06:23:40 cgd Exp $ */ /****************************************************************************** * * @@ -110,14 +110,14 @@ sys_ntp_gettime(p, v, retval) { struct sys_ntp_gettime_args /* { - syscallarg(struct timex *) tp; + syscallarg(struct ntptimeval *) ntvp; } */ *uap = v; struct timeval atv; struct ntptimeval ntv; int error = 0; int s; - if (SCARG(uap, tp)) { + if (SCARG(uap, ntvp)) { s = splclock(); #ifdef EXT_CLOCK /* @@ -141,7 +141,7 @@ sys_ntp_gettime(p, v, retval) ntv.esterror = time_esterror; (void) splx(s); - error = copyout((caddr_t)&ntv, (caddr_t)SCARG(uap, tp), + error = copyout((caddr_t)&ntv, (caddr_t)SCARG(uap, ntvp), sizeof (ntv)); } if (!error) { diff --git a/sys/kern/syscalls.master b/sys/kern/syscalls.master index b2586b2a43c3..0d5c2e361f6a 100644 --- a/sys/kern/syscalls.master +++ b/sys/kern/syscalls.master @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.41 1996/12/06 20:05:31 thorpej Exp $ + $NetBSD: syscalls.master,v 1.42 1996/12/22 06:23:38 cgd Exp $ ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -308,7 +308,7 @@ 172 UNIMPL 173 UNIMPL 174 UNIMPL -175 STD { int sys_ntp_gettime(struct timex *tp); } +175 STD { int sys_ntp_gettime(struct ntptimeval *tp); } 176 STD { int sys_ntp_adjtime(struct timex *tp); } 177 UNIMPL 178 UNIMPL