Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Do not hardcode the value. Use KQ_NEVENTS.
details: https://anonhg.NetBSD.org/src/rev/4890093d6cfa
branches: trunk
changeset: 330144:4890093d6cfa
user: maxv <maxv%NetBSD.org@localhost>
date: Tue Jun 24 14:42:43 2014 +0000
description:
Do not hardcode the value. Use KQ_NEVENTS.
diffstat:
sys/kern/kern_event.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 425bd21c531a -r 4890093d6cfa sys/kern/kern_event.c
--- a/sys/kern/kern_event.c Tue Jun 24 14:33:57 2014 +0000
+++ b/sys/kern/kern_event.c Tue Jun 24 14:42:43 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_event.c,v 1.79 2012/11/24 15:14:32 christos Exp $ */
+/* $NetBSD: kern_event.c,v 1.80 2014/06/24 14:42:43 maxv Exp $ */
/*-
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_event.c,v 1.79 2012/11/24 15:14:32 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_event.c,v 1.80 2014/06/24 14:42:43 maxv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -827,7 +827,7 @@
struct timespec ts;
size_t i, n, ichange;
int nerrors, error;
- struct kevent kevbuf[8]; /* approx 300 bytes on 64-bit */
+ struct kevent kevbuf[KQ_NEVENTS]; /* approx 300 bytes on 64-bit */
file_t *fp;
/* check that we're dealing with a kq */
Home |
Main Index |
Thread Index |
Old Index