From 13e8df014fe59c0c941ea20c9ecad2dbeee3edf9 Mon Sep 17 00:00:00 2001 From: Tristan Riehs Date: Thu, 20 Jun 2024 02:25:40 +0900 Subject: Start integrating the new interface facility --- src/calculer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calculer.c b/src/calculer.c index 34e2fa6..de2dcf8 100644 --- a/src/calculer.c +++ b/src/calculer.c @@ -140,6 +140,7 @@ main(int argc, char *argv[]) { char *logpath = "./calculer.log"; char *disp_name = DISP_RAY; + struct disp *disp; srand(time(NULL)); /* Store the prefix "YYYY-MM-DD" in LOGBUF. */ @@ -184,7 +185,8 @@ main(int argc, char *argv[]) } logfile = fopen(logpath, "a"); - assert(logfile); + assert(logfile); /* TODO: handle non-fatal error properly */ + disp = get_disp(disp_name); while (1) { -- cgit v1.2.3