Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Nov 2022 16:37:50 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 8576f84bc1d7 - main - tftp: Use printf0 attribute for options_set_request/reply.
Message-ID:  <202211221637.2AMGboMH054644@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=8576f84bc1d75c2bae0a41ccb6ebe5de08479a06

commit 8576f84bc1d75c2bae0a41ccb6ebe5de08479a06
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-11-22 16:37:26 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-11-22 16:37:26 +0000

    tftp: Use printf0 attribute for options_set_request/reply.
    
    These functions accept a NULL format argument so should use the printf0
    attribute rather than plain printf.
    
    Reported by:    GCC -Wformat
---
 libexec/tftpd/tftp-options.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libexec/tftpd/tftp-options.h b/libexec/tftpd/tftp-options.h
index 569d88d3c6d1..ac2e0fda5f5b 100644
--- a/libexec/tftpd/tftp-options.h
+++ b/libexec/tftpd/tftp-options.h
@@ -66,6 +66,6 @@ enum opt_enum {
 };
 
 int	options_set_request(enum opt_enum, const char *, ...)
-	__printflike(2, 3);
+	__printf0like(2, 3);
 int	options_set_reply(enum opt_enum, const char *, ...)
-	__printflike(2, 3);
+	__printf0like(2, 3);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202211221637.2AMGboMH054644>