]> git.ipfire.org Git - zone-sync.git/commitdiff
main: logger: Check formatting arguments
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 18 May 2026 15:12:13 +0000 (15:12 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 18 May 2026 15:12:13 +0000 (15:12 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
main.c

diff --git a/main.c b/main.c
index b52543137de6dc6c1ab1cd8be5b2f88347d1e521..0fd56c4bd015491bd4079671da64af42c75ec2fd 100644 (file)
--- a/main.c
+++ b/main.c
@@ -105,6 +105,9 @@ static ctx_t ctx = {
 
 static dns_fixedname_t fixed = {};
 
+static void logger(int priority, const char* format, ...)
+       __attribute__((format(printf, 2, 3)));
+
 static void logger(int priority, const char* format, ...) {
        char buffer[4096];
        FILE* f = NULL;