summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_ntptime.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-11-12 06:43:28 +0000
committerbde <bde@FreeBSD.org>1995-11-12 06:43:28 +0000
commitaa9a60640e2c942769c3a8f506c8cb6317bb1eaf (patch)
tree2f26975a8fd164c9658b820d74c731c86cbb9e18 /sys/kern/kern_ntptime.c
parent7a9faab8f26e7692e572f4cdd89f30d1be471ebd (diff)
downloadFreeBSD-src-aa9a60640e2c942769c3a8f506c8cb6317bb1eaf.zip
FreeBSD-src-aa9a60640e2c942769c3a8f506c8cb6317bb1eaf.tar.gz
Included <sys/sysproto.h> to get central declarations for syscall args
structs and prototypes for syscalls. Ifdefed duplicated decentralized declarations of args structs. It's convenient to have this visible but they are hard to maintain. Some are already different from the central declarations. 4.4lite2 puts them in comments in the function headers but I wanted to avoid the large changes for that.
Diffstat (limited to 'sys/kern/kern_ntptime.c')
-rw-r--r--sys/kern/kern_ntptime.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/kern_ntptime.c b/sys/kern/kern_ntptime.c
index a7006ef..421200a 100644
--- a/sys/kern/kern_ntptime.c
+++ b/sys/kern/kern_ntptime.c
@@ -45,6 +45,7 @@
*/
#include <sys/param.h>
#include <sys/systm.h>
+#include <sys/sysproto.h>
#include <sys/kernel.h>
#include <sys/proc.h>
#include <sys/timex.h>
@@ -168,9 +169,11 @@ ntp_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp,
/*
* ntp_adjtime() - NTP daemon application interface
*/
+#ifndef _SYS_SYSPROTO_H_
struct ntp_adjtime_args {
struct timex *tp;
};
+#endif
int
ntp_adjtime(struct proc *p, struct ntp_adjtime_args *uap, int *retval)
OpenPOWER on IntegriCloud