diff --git a/include/logstuff.h b/include/logstuff.h index 885b3f0fd0c42301112a689803b28eaf38ce71b9..ae449e6f45e4c1a15c3778047bd9a0b54f71dea2 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 84c8d3c4486d5a7e45201b489e6464192039e9ff..c396586513b81499c21621ea43f0054d8714a6ac 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;