ntp_gettime()'s argument is a struct ntptimeval *, not a struct timex *

This commit is contained in:
cgd 1996-12-22 06:23:38 +00:00
parent f867c23217
commit e9a07759c9
2 changed files with 6 additions and 6 deletions

View File

@ -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) {

View File

@ -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