Move tty_opened_ns() into syscons.c which is currently the

only client of this macro.

Suggested by:	ed @
MFC after:	1 week
This commit is contained in:
Hans Petter Selasky 2012-03-29 15:47:29 +00:00
parent 8e0f1d18c8
commit d1eacc02f1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=233664
2 changed files with 3 additions and 2 deletions

View File

@ -86,6 +86,9 @@ __FBSDID("$FreeBSD$");
#define KEYCODE_BS 0x0e /* "<-- Backspace" key, XXX */
/* NULL-safe version of "tty_opened()" */
#define tty_opened_ns(tp) ((tp) != NULL && tty_opened(tp))
typedef struct default_attr {
int std_color; /* normal hardware color */
int rev_color; /* reverse hardware color */

View File

@ -197,8 +197,6 @@ void tty_hiwat_in_block(struct tty *tp);
void tty_hiwat_in_unblock(struct tty *tp);
dev_t tty_udev(struct tty *tp);
#define tty_opened(tp) ((tp)->t_flags & TF_OPENED)
/* NULL-safe version of "tty_opened()" */
#define tty_opened_ns(tp) ((tp) != NULL && tty_opened(tp))
#define tty_gone(tp) ((tp)->t_flags & TF_GONE)
#define tty_softc(tp) ((tp)->t_devswsoftc)
#define tty_devname(tp) devtoname((tp)->t_dev)