sprinkle some const and static.

This commit is contained in:
yamt 2006-04-21 14:00:18 +00:00
parent 80dfcaed5b
commit 261fb8266c

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_event.c,v 1.25 2005/12/11 12:24:29 christos Exp $ */
/* $NetBSD: kern_event.c,v 1.26 2006/04/21 14:00:18 yamt Exp $ */
/*-
* Copyright (c) 1999,2000,2001 Jonathan Lemon <jlemon@FreeBSD.org>
* All rights reserved.
@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kern_event.c,v 1.25 2005/12/11 12:24:29 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: kern_event.c,v 1.26 2006/04/21 14:00:18 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -100,11 +100,11 @@ static const struct filterops proc_filtops =
{ 0, filt_procattach, filt_procdetach, filt_proc };
static const struct filterops file_filtops =
{ 1, filt_fileattach, NULL, NULL };
static struct filterops timer_filtops =
static const struct filterops timer_filtops =
{ 0, filt_timerattach, filt_timerdetach, filt_timer };
POOL_INIT(kqueue_pool, sizeof(struct kqueue), 0, 0, 0, "kqueuepl", NULL);
POOL_INIT(knote_pool, sizeof(struct knote), 0, 0, 0, "knotepl", NULL);
static POOL_INIT(kqueue_pool, sizeof(struct kqueue), 0, 0, 0, "kqueuepl", NULL);
static POOL_INIT(knote_pool, sizeof(struct knote), 0, 0, 0, "knotepl", NULL);
static int kq_ncallouts = 0;
static int kq_calloutmax = (4 * 1024);