From nobody Tue Nov 22 16:37:50 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NGqgL6hxTz4j2Vm; Tue, 22 Nov 2022 16:37:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NGqgL5sF2z3LjC; Tue, 22 Nov 2022 16:37:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669135070; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5R7RtXfow91+j8LorLS95rW/Rx0x6CNQ6gskTGZq/QI=; b=q2ukK2DZxXlxerjvTTKLr0Vuhh4Ilq2KP8FV/7FG4g3jD/9QDYXU1RfnAwsjXmYcDF/CIp aNEihe5acVypu9wN0u2QVicZ0Gzji6bF82nM6ZM3A/Wh4tK0iSAx6sIaV7Z5mdYh04HxR/ D1hdD6/7Wvq4usP8qDNhOr5/QxXKW2hy9HGu9HJd0vUm+8ClsBrk7dv9SA6z1l5cl0As22 kf3Z46VrzNDVbDEaEJj8FmfT1VLy49xEkxhZaE3dQsCbNI+spy6R8VxxGpOE0sQhLWseQ4 FPSfj3gWy23BFODRqX1E9nxlW6NA7VuwIk5ne7fkt70vND8MfZ1NiLBBKXVfIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669135070; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5R7RtXfow91+j8LorLS95rW/Rx0x6CNQ6gskTGZq/QI=; b=CiJsQ9W1TwsiykSf4n6+IVTNJ0ytUo49ZEj1jfMVF5Sy9Bn1I/zzQ9NX7xhr1B6hSEBmN+ AovBnSDUdeqq90R2FKi3Qql3WKZ5Vg6T7tkKdNdzKhZ3081vJwrRn8OBkoNDnDrKQlvZnp 78pyZZlHslpkEdUuaPfS5VrUl3zp5EOoAPK551HK7Vnr9DFxXPo0Yg4cKmEne5bsQV3E4N zlL7Hq5OxRU358FCCVT1AKR98alqLIFu6RgF2Kddyf5KFyn1jJXxLOcHjAEpYPxZ+7LtJy zY7IbrjSxpuNUXqXSHuJpg8hYyr/8ze9wYrk/ZJxwxCehEjdUvtBcNyZk7QMJg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669135070; a=rsa-sha256; cv=none; b=WFXxfnwI28laroUhf9eLU/tD1/LU8iZqegF2DFwqNC/Lb+f+86Y7R8nMgu2Xlvtenwi2Hv xFmacDMRxHNd3vSAw5saCB/M3shLgeEtcMCxjeBgWU7JpzpL6tfgzXqp91fM74QhCxwfDq R/39t3+cb1xA0iMg07H26vrH13qkLwCxKhwIpoo9TXVstg4KjO/RgZiaCYuyzXdAgjTOet pRL1bchMNUK5lHGmrgQ5HIHdhM0oit7OxHmcARmGdb3FhbyT3Yqu5CEaiAQ+S4/dg8Ncsb LEetFKdwauopzxDA6WLxyhctfLr5MBXM6hW0OkLD6cAz4nchsR1OleeXJlHiCA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NGqgL4xgYzpyV; Tue, 22 Nov 2022 16:37:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2AMGbodA054645; Tue, 22 Nov 2022 16:37:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AMGboMH054644; Tue, 22 Nov 2022 16:37:50 GMT (envelope-from git) Date: Tue, 22 Nov 2022 16:37:50 GMT Message-Id: <202211221637.2AMGboMH054644@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 8576f84bc1d7 - main - tftp: Use printf0 attribute for options_set_request/reply. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8576f84bc1d75c2bae0a41ccb6ebe5de08479a06 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=8576f84bc1d75c2bae0a41ccb6ebe5de08479a06 commit 8576f84bc1d75c2bae0a41ccb6ebe5de08479a06 Author: John Baldwin AuthorDate: 2022-11-22 16:37:26 +0000 Commit: John Baldwin 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);