From fd5f6f4cf22e5a95186adf0a6295ecf36588161d Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Tue, 29 Mar 2005 08:13:17 +0000 Subject: [PATCH] Privatize major(). --- sys/kern/kern_conf.c | 2 +- sys/sys/systm.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c index b63271199bff..44b6325d2e3e 100644 --- a/sys/kern/kern_conf.c +++ b/sys/kern/kern_conf.c @@ -234,7 +234,7 @@ no_poll(struct cdev *dev __unused, int events, struct thread *td __unused) * struct cdev * and u_dev_t primitives */ -int +static int major(struct cdev *x) { if (x == NULL) diff --git a/sys/sys/systm.h b/sys/sys/systm.h index f18e7c687384..adeea69c0a48 100644 --- a/sys/sys/systm.h +++ b/sys/sys/systm.h @@ -306,7 +306,6 @@ void wakeup_one(void *chan) __nonnull(1); */ struct cdev; -int major(struct cdev *x); int minor(struct cdev *x); dev_t dev2udev(struct cdev *x); int uminor(dev_t dev);