Mark _printflike_ things so we get format warnings.
[darkstat] / http.c
diff --git a/http.c b/http.c
index 1da660b..cc2f116 100644 (file)
--- a/http.c
+++ b/http.c
@@ -407,6 +407,9 @@ static void generate_header(struct connection *conn,
 /* ---------------------------------------------------------------------------
  * A default reply for any (erroneous) occasion.
  */
+static void default_reply(struct connection *conn,
+    const int errcode, const char *errname, const char *format, ...)
+    _printflike_(4, 5);
 static void default_reply(struct connection *conn,
     const int errcode, const char *errname, const char *format, ...)
 {