From 196f9d67c2049c50474c78ddeb59ebe72ac070ab Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 22 Jul 2019 19:15:56 +0200 Subject: term: group 'flash' state together in a struct --- osc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'osc.c') diff --git a/osc.c b/osc.c index 2845ab96..cfecf2ee 100644 --- a/osc.c +++ b/osc.c @@ -213,10 +213,10 @@ osc_flash(struct terminal *term) .it_value = {.tv_sec = 0, .tv_nsec = duration_ms * 1000000}, }; - if (timerfd_settime(term->flash_timer_fd, 0, &alarm, NULL) < 0) + if (timerfd_settime(term->flash.fd, 0, &alarm, NULL) < 0) LOG_ERRNO("failed to arm flash timer"); else { - term->flash_active = true; + term->flash.active = true; } } -- cgit v1.3