aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_ntptime.c
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1995-11-12 06:43:28 +0000
committerBruce Evans <bde@FreeBSD.org>1995-11-12 06:43:28 +0000
commitd2d3e8751c3b7831f7064ccf400978b75b696547 (patch)
tree2f26975a8fd164c9658b820d74c731c86cbb9e18 /sys/kern/kern_ntptime.c
parent2f1ba63ba85a5689771dc1294c47ecef2c2c9a23 (diff)
downloadsrc-d2d3e8751c3b7831f7064ccf400978b75b696547.tar.gz
src-d2d3e8751c3b7831f7064ccf400978b75b696547.zip
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.
Notes
Notes: svn path=/head/; revision=12221
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 a7006ef29d01..421200a37312 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)