]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
privops: mark res_fatal() for printf format compiler check
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 5 Mar 2025 09:44:04 +0000 (10:44 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 5 Mar 2025 15:39:13 +0000 (16:39 +0100)
privops.c

index 3fb5cbd5c47c485f248507b17183d598436deadc..e1c25e0ca7aef8355171d9403aa30e3bd460a1ff 100644 (file)
--- a/privops.c
+++ b/privops.c
@@ -141,6 +141,7 @@ have_helper(void)
 /* ======================================================================= */
 
 /* HELPER - prepare fatal error for daemon */
+FORMAT_ATTRIBUTE_PRINTF(2, 3)
 static void
 res_fatal(PrvResponse *res, const char *fmt, ...)
 {