summaryrefslogtreecommitdiff
path: root/sys/kern/subr_log.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/subr_log.c')
-rw-r--r--sys/kern/subr_log.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/kern/subr_log.c b/sys/kern/subr_log.c
index 6f5d2be7b44..aead8b3b7e8 100644
--- a/sys/kern/subr_log.c
+++ b/sys/kern/subr_log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_log.c,v 1.60 2019/12/24 12:56:07 bluhm Exp $ */
+/* $OpenBSD: subr_log.c,v 1.61 2019/12/31 13:48:32 visa Exp $ */
/* $NetBSD: subr_log.c,v 1.11 1996/03/30 22:24:44 christos Exp $ */
/*
@@ -88,8 +88,12 @@ struct file *syslogf;
void filt_logrdetach(struct knote *kn);
int filt_logread(struct knote *kn, long hint);
-struct filterops logread_filtops =
- { 1, NULL, filt_logrdetach, filt_logread};
+const struct filterops logread_filtops = {
+ .f_isfd = 1,
+ .f_attach = NULL,
+ .f_detach = filt_logrdetach,
+ .f_event = filt_logread,
+};
int dosendsyslog(struct proc *, const char *, size_t, int, enum uio_seg);
void logtick(void *);