diff options
author | peter <peter@FreeBSD.org> | 2001-01-29 09:43:36 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-01-29 09:43:36 +0000 |
commit | 2f446fa4553d73402dc952ae2f348a80942113e2 (patch) | |
tree | 62331600bd05e2784d3b69fd0ad68ce88712c489 /sys/kern/tty.c | |
parent | b7edc4f4e3e8a67e435d794319102a67c59af546 (diff) | |
download | FreeBSD-src-2f446fa4553d73402dc952ae2f348a80942113e2.zip FreeBSD-src-2f446fa4553d73402dc952ae2f348a80942113e2.tar.gz |
Turn '#if NSNP > 0' into an option.
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r-- | sys/kern/tty.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index d750daa..f4fe297 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -67,7 +67,7 @@ * only when _all_ openers leave open(). */ -#include "snp.h" +#include "opt_snp.h" #include "opt_compat.h" #include "opt_uconsole.h" @@ -91,7 +91,7 @@ #include <sys/resourcevar.h> #include <sys/malloc.h> #include <sys/filedesc.h> -#if NSNP > 0 +#ifdef DEV_SNP #include <sys/snoop.h> #endif #include <sys/sysctl.h> @@ -254,7 +254,7 @@ ttyclose(tp) clist_free_cblocks(&tp->t_outq); clist_free_cblocks(&tp->t_rawq); -#if NSNP > 0 +#ifdef DEV_SNP if (ISSET(tp->t_state, TS_SNOOP) && tp->t_sc != NULL) snpdown((struct snoop *)tp->t_sc); #endif @@ -1612,7 +1612,7 @@ read: * XXX if there was an error then we should ungetc() the * unmoved chars and reduce icc here. */ -#if NSNP > 0 +#ifdef DEV_SNP if (ISSET(tp->t_lflag, ECHO) && ISSET(tp->t_state, TS_SNOOP) && tp->t_sc != NULL) snpin((struct snoop *)tp->t_sc, ibuf, icc); @@ -1659,7 +1659,7 @@ slowcase: if (error) /* XXX should ungetc(c, qp). */ break; -#if NSNP > 0 +#ifdef DEV_SNP /* * Only snoop directly on input in echo mode. Non-echoed * input will be snooped later iff the application echoes it. @@ -1812,7 +1812,7 @@ loop: cc = 0; break; } -#if NSNP > 0 +#ifdef DEV_SNP if (ISSET(tp->t_state, TS_SNOOP) && tp->t_sc != NULL) snpin((struct snoop *)tp->t_sc, cp, cc); #endif |