From nobody Sat Dec 16 04:19:21 2023 X-Original-To: dev-commits-src-branches@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 4SsXsk0Ksrz54Wyx; Sat, 16 Dec 2023 04:19:22 +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 4SsXsj6fdhz3CxV; Sat, 16 Dec 2023 04:19:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702700361; 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=3Xf8yb2D1XMk3X9qy//I1plHC/f0LFMvYk/GqxkYNyg=; b=L3Io8eLTsWjZUhUFdUxHBX9nzB29cwqjmozIgRG9Ul3SxZuVYh3as0Pqmox/puJ9s9onRC 4OMUPmnkuXoUYbgoPoYiZLriP0vgjMkCWZZf+g6232hu+Jxj5fuRUmbs1GmheN62u2o4Uy AP4ROsLOyB2RgN1bXy0qdLrpSwhRSJq8ll4WEOwz57uRXjsSJsFeh6h4PjnV7D9kWeFSc0 /DcB266f/jxGlPpn24NeadyCT0RNikM/+o17PKe0xsZXHbFvCAEsy8XeaKuty25MaHtwn2 GQgMuZD9cQ4pJ53/RFpBedxzjUGu4Ao4N/IcXWh/Ccpgr2LOplSFiFdd3stJRg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702700361; a=rsa-sha256; cv=none; b=k8XQkjnCjlJnajw8gAYsRcnxXFvC9A4xcsqRxeCOLX1XPqaER4b6wfI7hgfNpFMYQO7gPY ai67S2D3VoN38XCPKizuVuQqHvSqBOsxnyAuthv8h9fyvnH11ECH2PIgTAYzp1mF4AvB6u Fs8uKscpTm/dNI2Ke6ToDb80f+TOkzeDJhRKWADu7laj4lbYh0dTTvZ784Y9dEuF+/bGni Mi6D3kgDfkp5UmMWm5HaJe7MluhnJYtaXw7NDOlG71p8hJft4mL1lpAZMe3JD/VDmKXm8i k7YFD/L6ughV5kytpLXcnEEUNgISZ0NmArYmaLdNph8014EjC5CFQ7m9bG+Nfg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702700361; 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=3Xf8yb2D1XMk3X9qy//I1plHC/f0LFMvYk/GqxkYNyg=; b=IQRk7/ijWdvvSEqvU/2jBeJr6eVt4Bv79ruejXtmH5D1mtRcenjndFibttTlqcutWvFS1t KVLfrvkq3AuJPjxKOAPo4P/MAAfmKagEyGLmK4lvLGsDGpjM3qy88dniQZUA74DbWELWhD H9WxdcWc+D+AQwETi9/K5fHQvh3/YXD5TnRQo2hNaE0TbuBr7yHMFF5d1lBgR6n8hRdyjo ctA47YbB7pW/ESGRHhE9DTjhGl8O3zJXWGrMElO0TTXr6I+B+WHxWvC7wcX+Hc3uZFX/kw gSPf72+6EV9W3+mC8FtflUeYnERNko15HqEBA7g5Woyw58Fit69QJh2mePWDGA== 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 4SsXsj5ZZPzfhq; Sat, 16 Dec 2023 04:19:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3BG4JLkv059374; Sat, 16 Dec 2023 04:19:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BG4JLA9059371; Sat, 16 Dec 2023 04:19:21 GMT (envelope-from git) Date: Sat, 16 Dec 2023 04:19:21 GMT Message-Id: <202312160419.3BG4JLA9059371@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: c88024012f5b - stable/13 - strfmon.3: Cleanup example code List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: c88024012f5bc82823a197bdc89874fb8804dfe5 Auto-Submitted: auto-generated The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=c88024012f5bc82823a197bdc89874fb8804dfe5 commit c88024012f5bc82823a197bdc89874fb8804dfe5 Author: Jose Luis Duran AuthorDate: 2023-12-01 06:50:24 +0000 Commit: Konstantin Belousov CommitDate: 2023-12-16 04:18:47 +0000 strfmon.3: Cleanup example code (cherry picked from commit 2a163c3649e59dd616e057994ec02092362f0ae7) --- lib/libc/stdlib/strfmon.3 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/libc/stdlib/strfmon.3 b/lib/libc/stdlib/strfmon.3 index 7cd283573239..20cc560d401d 100644 --- a/lib/libc/stdlib/strfmon.3 +++ b/lib/libc/stdlib/strfmon.3 @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd January 25, 2023 +.Dd December 6, 2023 .Dt STRFMON 3 .Os .Sh NAME @@ -154,10 +154,10 @@ to the string .Bd -literal -offset indent #include #include -#include +#include int -main() +main(void) { char string[100]; double money = 1234567.89; @@ -169,6 +169,8 @@ main() strfmon(string, sizeof(string) - 1, "%n", money); printf("%s\\n", string); + + return (0); } .Ed .Sh ERRORS