From 203d398e48da423c22c6890211f46fc2f3ef145a Mon Sep 17 00:00:00 2001
From: peter <peter@FreeBSD.org>
Date: Fri, 28 Jul 2000 22:32:25 +0000
Subject: Fix warnings - make kevent args in comment match those in
 syscalls.master. Deal with consts.

---
 sys/kern/kern_event.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'sys/kern')

diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c
index b40d510..0fce41b 100644
--- a/sys/kern/kern_event.c
+++ b/sys/kern/kern_event.c
@@ -58,7 +58,7 @@ static void	filt_procdetach(struct knote *kn);
 static int	filt_proc(struct knote *kn, long hint);
 
 static int	kqueue_scan(struct file *fp, int maxevents,
-		    struct kevent *ulistp, struct timespec *timeout,
+		    struct kevent *ulistp, const struct timespec *timeout,
 		    struct proc *p);
 static int 	kqueue_read(struct file *fp, struct uio *uio,
 		    struct ucred *cred, int flags, struct proc *p);
@@ -320,11 +320,11 @@ kqueue(struct proc *p, struct kqueue_args *uap)
 #ifndef _SYS_SYSPROTO_H_
 struct kevent_args {
 	int	fd;
-	struct	kevent *changelist;
+	const struct kevent *changelist;
 	int	nchanges;
 	struct	kevent *eventlist;
 	int	nevents;
-	struct	timespec *timeout;
+	const struct timespec *timeout;
 };
 #endif
 int
@@ -511,7 +511,7 @@ done:
 
 static int
 kqueue_scan(struct file *fp, int maxevents, struct kevent *ulistp,
-	struct timespec *tsp, struct proc *p)
+	const struct timespec *tsp, struct proc *p)
 {
 	struct kqueue *kq = (struct kqueue *)fp->f_data;
 	struct kevent *kevp;
-- 
cgit v1.1