diff options
author | 2017-12-21 21:04:38 +0000 | |
---|---|---|
committer | 2017-12-21 21:04:38 +0000 | |
commit | e7483f3bf35922de55a8182c036b1cc11eaa915f (patch) | |
tree | 0c4d0659d93ce8abc0d21e271f342453c2366a7d /sys/sys/event.h | |
parent | typo; (diff) | |
download | wireguard-openbsd-e7483f3bf35922de55a8182c036b1cc11eaa915f.tar.xz wireguard-openbsd-e7483f3bf35922de55a8182c036b1cc11eaa915f.zip |
Expand u_short and u_int to unsigned short and unsigned int
respectively to avoid compilation errors when one of the POSIX or
X/OPEN version macros is defined. Also sync the field descriptions
with kqueue.2. OK deraadt@
Diffstat (limited to 'sys/sys/event.h')
-rw-r--r-- | sys/sys/event.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/sys/event.h b/sys/sys/event.h index a3036a8aa13..c3b2b285bfc 100644 --- a/sys/sys/event.h +++ b/sys/sys/event.h @@ -1,4 +1,4 @@ -/* $OpenBSD: event.h,v 1.28 2017/12/18 10:10:53 mpi Exp $ */ +/* $OpenBSD: event.h,v 1.29 2017/12/21 21:04:38 millert Exp $ */ /*- * Copyright (c) 1999,2000,2001 Jonathan Lemon <jlemon@FreeBSD.org> @@ -54,9 +54,9 @@ struct kevent { __uintptr_t ident; /* identifier for this event */ short filter; /* filter for event */ - u_short flags; - u_int fflags; - __int64_t data; + unsigned short flags; /* action flags for kqueue */ + unsigned int fflags; /* filter flag value */ + __int64_t data; /* filter data value */ void *udata; /* opaque user data identifier */ }; |