summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_event.c6
-rw-r--r--sys/sys/event.h3
2 files changed, 4 insertions, 5 deletions
diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c
index e473ff0..86a950f 100644
--- a/sys/kern/kern_event.c
+++ b/sys/kern/kern_event.c
@@ -146,7 +146,7 @@ static int filt_userattach(struct knote *kn);
static void filt_userdetach(struct knote *kn);
static int filt_user(struct knote *kn, long hint);
static void filt_usertouch(struct knote *kn, struct kevent *kev,
- unsigned long type);
+ u_long type);
static struct filterops file_filtops = {
.f_isfd = 1,
@@ -617,9 +617,9 @@ filt_user(struct knote *kn, __unused long hint)
}
static void
-filt_usertouch(struct knote *kn, struct kevent *kev, unsigned long type)
+filt_usertouch(struct knote *kn, struct kevent *kev, u_long type)
{
- unsigned int ffctrl;
+ u_int ffctrl;
switch (type) {
case EVENT_REGISTER:
diff --git a/sys/sys/event.h b/sys/sys/event.h
index 56d1630..4365e44 100644
--- a/sys/sys/event.h
+++ b/sys/sys/event.h
@@ -191,8 +191,7 @@ struct filterops {
int (*f_attach)(struct knote *kn);
void (*f_detach)(struct knote *kn);
int (*f_event)(struct knote *kn, long hint);
- void (*f_touch)(struct knote *kn, struct kevent *kev,
- unsigned long type);
+ void (*f_touch)(struct knote *kn, struct kevent *kev, u_long type);
};
/*
OpenPOWER on IntegriCloud