diff --git a/include/log.h b/include/log.h
index e713b2600643cac2089ba81aecd04dce38a258e0..15e5be7c1235971987bfb78f3852af378772301a 100644
--- a/include/log.h
+++ b/include/log.h
@@ -8,7 +8,7 @@
 #include "node.h"
 
 void pen();
-void report(short num, char *s);
+void report(int num, char *s);
 void log_setmode(const char *s);
 void strwordx(char *buf, char *wrd);
 long getint(char *s, long def);
diff --git a/src/log.c b/src/log.c
index feb06265ee679a95e1a19ed5f148f8947c90894a..af72f3786f0935481bf2a85e976af2f22cfb7ad6 100644
--- a/src/log.c
+++ b/src/log.c
@@ -32,6 +32,8 @@
    */
 #define TOOL_KIND
 
+#include "log.h"
+
 #include <unistd.h>
 #include <time.h>
 #include <stdlib.h>
@@ -349,13 +351,6 @@ int glowsolder;   ///< Display solder dots in Glow mode
 int vlsi;   ///< Current page is VLSI mode
 
 
-void m_saveclip ();
-
-void nc_cursor_on ();
-
-void nc_cursor_off ();
-
-
 static char *ioresult_message(char *Result, long iores)
 {
 	char s[81];
@@ -364,8 +359,6 @@ static char *ioresult_message(char *Result, long iores)
 	return strcpy(Result, s);
 }
 
-void message (char *msg);
-
 /// Report an internal error.
 void report(int num, char *s)
 {