Date: Thu, 17 Sep 2009 17:41:28 +0000 (UTC) From: Roman Divacky <rdivacky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r197293 - in head/sys: kern sys Message-ID: <200909171741.n8HHfScO065197@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rdivacky Date: Thu Sep 17 17:41:28 2009 New Revision: 197293 URL: http://svn.freebsd.org/changeset/base/197293 Log: Make these argument/variable unsigned as the defines for them don't fit into signed 32bit integer. Approved by: ed (mentor, implicit) Approved by: sson Modified: head/sys/kern/kern_event.c head/sys/sys/event.h Modified: head/sys/kern/kern_event.c ============================================================================== --- head/sys/kern/kern_event.c Thu Sep 17 16:16:44 2009 (r197292) +++ head/sys/kern/kern_event.c Thu Sep 17 17:41:28 2009 (r197293) @@ -145,7 +145,7 @@ static int filt_timer(struct knote *kn, 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, long type); +static void filt_usertouch(struct knote *kn, struct kevent *kev, unsigned long type); static struct filterops file_filtops = { .f_isfd = 1, @@ -616,9 +616,9 @@ filt_user(struct knote *kn, __unused lon } static void -filt_usertouch(struct knote *kn, struct kevent *kev, long type) +filt_usertouch(struct knote *kn, struct kevent *kev, unsigned long type) { - int ffctrl; + unsigned int ffctrl; switch (type) { case EVENT_REGISTER: Modified: head/sys/sys/event.h ============================================================================== --- head/sys/sys/event.h Thu Sep 17 16:16:44 2009 (r197292) +++ head/sys/sys/event.h Thu Sep 17 17:41:28 2009 (r197293) @@ -191,7 +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, long type); + void (*f_touch)(struct knote *kn, struct kevent *kev, unsigned long type); }; /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909171741.n8HHfScO065197>