diff options
author | rwatson <rwatson@FreeBSD.org> | 2009-09-12 20:03:45 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2009-09-12 20:03:45 +0000 |
commit | 53eaed07bcf1ec0f1a38e0b490d95f1ee307055a (patch) | |
tree | a4c213c079a55cd47cd1026ebfbedf0f22cafea1 /sys/kern/kern_sig.c | |
parent | db3ff4e5c03b76a4899555f3db282820ce0c3470 (diff) | |
download | FreeBSD-src-53eaed07bcf1ec0f1a38e0b490d95f1ee307055a.zip FreeBSD-src-53eaed07bcf1ec0f1a38e0b490d95f1ee307055a.tar.gz |
Use C99 initialization for struct filterops.
Obtained from: Mac OS X
Sponsored by: Apple Inc.
MFC after: 3 weeks
Diffstat (limited to 'sys/kern/kern_sig.c')
-rw-r--r-- | sys/kern/kern_sig.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index cdf757d..74e625a 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -111,8 +111,12 @@ static struct thread *sigtd(struct proc *p, int sig, int prop); static void sigqueue_start(void); static uma_zone_t ksiginfo_zone = NULL; -struct filterops sig_filtops = - { 0, filt_sigattach, filt_sigdetach, filt_signal }; +struct filterops sig_filtops = { + .f_isfd = 0, + .f_attach = filt_sigattach, + .f_detach = filt_sigdetach, + .f_event = filt_signal, +}; int kern_logsigexit = 1; SYSCTL_INT(_kern, KERN_LOGSIGEXIT, logsigexit, CTLFLAG_RW, |