diff options
| author | Alexander Motin <mav@FreeBSD.org> | 2008-12-13 21:17:46 +0000 |
|---|---|---|
| committer | Alexander Motin <mav@FreeBSD.org> | 2008-12-13 21:17:46 +0000 |
| commit | a9385ad10fc917da9876dfdd2baa43a82c36d94e (patch) | |
| tree | d9e25fe3d039b5ca9124d8b071d6154220f8dcb3 /sys/dev/snp | |
| parent | 68124cc7f8585b5554d186d32a51688c895551fe (diff) | |
Notes
Diffstat (limited to 'sys/dev/snp')
| -rw-r--r-- | sys/dev/snp/snp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/snp/snp.c b/sys/dev/snp/snp.c index f2dcc1b75f99..8d6485c72d48 100644 --- a/sys/dev/snp/snp.c +++ b/sys/dev/snp/snp.c @@ -35,6 +35,7 @@ __FBSDID("$FreeBSD$"); #include <sys/malloc.h> #include <sys/module.h> #include <sys/poll.h> +#include <sys/proc.h> #include <sys/snoop.h> #include <sys/sx.h> #include <sys/systm.h> @@ -246,7 +247,7 @@ snp_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int flags, sx_xunlock(&snp_register_lock); return (EBUSY); } - error = ttyhook_register(&ss->snp_tty, td, *(int *)data, + error = ttyhook_register(&ss->snp_tty, td->td_proc, *(int *)data, &snp_hook, ss); sx_xunlock(&snp_register_lock); if (error != 0) |
