diff options
author | visa <visa@openbsd.org> | 2019-12-31 13:48:31 +0000 |
---|---|---|
committer | visa <visa@openbsd.org> | 2019-12-31 13:48:31 +0000 |
commit | 94321eb495589ab239b0671b5b64153695549a6a (patch) | |
tree | efc2ebaf9be368d77ceb76d98681ee04c39c30d9 /sys/sys/event.h | |
parent | In mrt_dump_hdr_rde() use clock_gettime(CLOCK_REALTIME, ) like it is done (diff) | |
download | wireguard-openbsd-94321eb495589ab239b0671b5b64153695549a6a.tar.xz wireguard-openbsd-94321eb495589ab239b0671b5b64153695549a6a.zip |
Use C99 designated initializers with struct filterops. In addition,
make the structs const so that the data are put in .rodata.
OK mpi@, deraadt@, anton@, bluhm@
Diffstat (limited to 'sys/sys/event.h')
-rw-r--r-- | sys/sys/event.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/event.h b/sys/sys/event.h index 909367aea33..0597021c114 100644 --- a/sys/sys/event.h +++ b/sys/sys/event.h @@ -1,4 +1,4 @@ -/* $OpenBSD: event.h,v 1.31 2019/12/12 16:31:06 visa Exp $ */ +/* $OpenBSD: event.h,v 1.32 2019/12/31 13:48:32 visa Exp $ */ /*- * Copyright (c) 1999,2000,2001 Jonathan Lemon <jlemon@FreeBSD.org> @@ -185,6 +185,8 @@ struct knote { struct proc; +extern const struct filterops sig_filtops; + extern void knote(struct klist *list, long hint); extern void knote_activate(struct knote *); extern void knote_remove(struct proc *p, struct klist *list); |