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

View File

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