From e7483f3bf35922de55a8182c036b1cc11eaa915f Mon Sep 17 00:00:00 2001 From: millert Date: Thu, 21 Dec 2017 21:04:38 +0000 Subject: [PATCH] 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@ --- sys/sys/event.h | 8 ++++---- 1 file 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 @@ -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 */ }; -- 2.20.1