From d9cebc0636725a5ab38cbb3d60c0a62b8c823234 Mon Sep 17 00:00:00 2001 From: Etienne Brateau <etienne.brateau@ensiie.fr> Date: Thu, 24 Jan 2019 23:59:30 +0100 Subject: [PATCH] logcom: remove warnings --- include/logstuff.h | 5 +++++ src/logcom.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/include/logstuff.h b/include/logstuff.h index 885b3f0..ae449e6 100644 --- a/include/logstuff.h +++ b/include/logstuff.h @@ -1,10 +1,15 @@ +#ifndef LOGSTUFF_H +#define LOGSTUFF_H extern void init_X_screen(void); extern void recolor_log_cursors(int color, int force); extern void choose_log_cursor(int curs); +int findprocedure(char *name, void (**proc)()); + struct ext_proc { char *name; void (*proc)(); }; +#endif diff --git a/src/logcom.c b/src/logcom.c index 84c8d3c..c396586 100644 --- a/src/logcom.c +++ b/src/logcom.c @@ -44,6 +44,7 @@ #include <utils/newasm.h> #include <graphics/newcrt.h> #include "logcom.h" +#include "logstuff.h" #define attr_time 1 #define attr_tstep 2 @@ -453,7 +454,7 @@ void Log_7_time(log_action_t *act_) timeinfo[i].y = -1; } } - WITH->actgate->vars = (na_long)(V.y * 2); + WITH->actgate->vars = (na_long)(V.y * 2L); } V.x = 0; V.y = 0; -- GitLab