shithub: puzzles

Download patch

ref: 5b0efd8db2f03a48ca4acbd17b68a4d8771b3e7f
parent: 01569005e325fc85e4a23fc050b7406789730444
author: Simon Tatham <anakin@pobox.com>
date: Fri Mar 10 13:02:02 EST 2023

Add missing 'static' on dputs().

This fixes a build failure due to -Wmissing-prototypes if you build
with -DDEBUGGING.

--- a/gtk.c
+++ b/gtk.c
@@ -88,7 +88,7 @@
 #ifdef DEBUGGING
 static FILE *debug_fp = NULL;
 
-void dputs(const char *buf)
+static void dputs(const char *buf)
 {
     if (!debug_fp) {
         debug_fp = fopen("debug.log", "w");
--- a/windows.c
+++ b/windows.c
@@ -73,7 +73,7 @@
 static HANDLE debug_hdl = INVALID_HANDLE_VALUE;
 static int debug_got_console = 0;
 
-void dputs(char *buf)
+static void dputs(char *buf)
 {
     /*DWORD dw;