From 22af4cab91adaa5781c1eb0808397c073f53620e Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Thu, 5 Jul 2007 05:54:47 +0000 Subject: [PATCH] Fix bad function type passed to destroy_dev_sched_cb(). Approved by: re (rwatson) --- sys/kern/tty_pts.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/tty_pts.c b/sys/kern/tty_pts.c index d010ddb3f663..8aff29e0d905 100644 --- a/sys/kern/tty_pts.c +++ b/sys/kern/tty_pts.c @@ -214,8 +214,9 @@ pty_new(void) * remains allocated. */ static void -pty_release(struct pt_desc *pt) +pty_release(void *v) { + struct pt_desc *pt = (struct pt_desc *)v; mtx_lock(&pt_mtx); KASSERT(pt->pt_ptc_open == 0 && pt->pt_pts_open == 0,