teken: Unbreak syscons' use of teken

Only vt(4) initializes these callbacks non-NULL at this time, so invoke the
function pointers conditionally.

Broken in r333669.

Submitted by:	bde@
This commit is contained in:
Conrad Meyer 2018-05-16 18:12:49 +00:00
parent 47ae7a7e4f
commit 4812c5c5e4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333683

View File

@ -136,16 +136,16 @@ static inline void
teken_funcs_pre_input(const teken_t *t)
{
teken_assert(t->t_funcs->tf_pre_input != NULL);
t->t_funcs->tf_pre_input(t->t_softc);
if (t->t_funcs->tf_pre_input != NULL)
t->t_funcs->tf_pre_input(t->t_softc);
}
static inline void
teken_funcs_post_input(const teken_t *t)
{
teken_assert(t->t_funcs->tf_post_input != NULL);
t->t_funcs->tf_post_input(t->t_softc);
if (t->t_funcs->tf_post_input != NULL)
t->t_funcs->tf_post_input(t->t_softc);
}
static inline void