summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_log.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-06-16 09:47:26 +0000
committerphk <phk@FreeBSD.org>2004-06-16 09:47:26 +0000
commitdfd1f7fd50fffaf75541921fcf86454cd8eb3614 (patch)
tree624c885995e84df6decddd3291c60a15e50e3c85 /sys/kern/subr_log.c
parentcafb94bcea1cdf048e81b7eb2d24808e1a8c5280 (diff)
downloadFreeBSD-src-dfd1f7fd50fffaf75541921fcf86454cd8eb3614.zip
FreeBSD-src-dfd1f7fd50fffaf75541921fcf86454cd8eb3614.tar.gz
Do the dreaded s/dev_t/struct cdev */
Bump __FreeBSD_version accordingly.
Diffstat (limited to 'sys/kern/subr_log.c')
-rw-r--r--sys/kern/subr_log.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/subr_log.c b/sys/kern/subr_log.c
index a232335..bdb18fd 100644
--- a/sys/kern/subr_log.c
+++ b/sys/kern/subr_log.c
@@ -92,7 +92,7 @@ SYSCTL_INT(_kern, OID_AUTO, log_wakeups_per_second, CTLFLAG_RW,
/*ARGSUSED*/
static int
-logopen(dev_t dev, int flags, int mode, struct thread *td)
+logopen(struct cdev *dev, int flags, int mode, struct thread *td)
{
if (log_open)
return (EBUSY);
@@ -110,7 +110,7 @@ logopen(dev_t dev, int flags, int mode, struct thread *td)
/*ARGSUSED*/
static int
-logclose(dev_t dev, int flag, int mode, struct thread *td)
+logclose(struct cdev *dev, int flag, int mode, struct thread *td)
{
log_open = 0;
@@ -122,7 +122,7 @@ logclose(dev_t dev, int flag, int mode, struct thread *td)
/*ARGSUSED*/
static int
-logread(dev_t dev, struct uio *uio, int flag)
+logread(struct cdev *dev, struct uio *uio, int flag)
{
char buf[128];
struct msgbuf *mbp = msgbufp;
@@ -157,7 +157,7 @@ logread(dev_t dev, struct uio *uio, int flag)
/*ARGSUSED*/
static int
-logpoll(dev_t dev, int events, struct thread *td)
+logpoll(struct cdev *dev, int events, struct thread *td)
{
int s;
int revents = 0;
@@ -203,7 +203,7 @@ logtimeout(void *arg)
/*ARGSUSED*/
static int
-logioctl(dev_t dev, u_long com, caddr_t data, int flag, struct thread *td)
+logioctl(struct cdev *dev, u_long com, caddr_t data, int flag, struct thread *td)
{
switch (com) {
OpenPOWER on IntegriCloud