mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-15 14:56:13 +01:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333683
@ -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