aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTristan Riehs <tristan.riehs@bordeaux-inp.fr>2024-06-20 02:25:40 +0900
committerTristan Riehs <tristan.riehs@bordeaux-inp.fr>2024-06-20 02:25:40 +0900
commit13e8df014fe59c0c941ea20c9ecad2dbeee3edf9 (patch)
tree16f5e8c508f1bfe2f26a5a3d139e53b916fc0568 /src
parent830f3750bcffd0a6dff998a1ac227333932cfec0 (diff)
Start integrating the new interface facility
Diffstat (limited to 'src')
-rw-r--r--src/calculer.c4
1 files changed, 3 insertions, 1 deletions
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)
{