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:
parent
47ae7a7e4f
commit
4812c5c5e4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user