From nobody Sat Dec 16 04:18:34 2023 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 4SsXrp6p1Nz54Wyp; Sat, 16 Dec 2023 04:18:34 +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 4SsXrp614Fz4gF2; Sat, 16 Dec 2023 04:18:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702700314; 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=cnou5jyQI0rW2oB4kIsKku5gd2cH+4xA+YNPxqgL6o8=; b=rfF0kfXBxrAReddtVIJqqzpTW+Bpc1gV2K+dYS0l+aqJSKM3uRdtfqLfD9LL8Aki/sbu81 gUACGC+ZePQWlC911x6hVUjhlJ9FP1+ga8ZYnrjI4ew3lIXIQcjPRzX6AGt/X8WrB27hAv 6X4K2UYF4FBUPTIsLHaFNx4MX+Rt8HCDVwDpA8VcIuzP4lE4uccwlygfZUI9FJZSwdsc/F Mauqqs9sMw9Lv71VjozMI12zt0WLfD/t1IG9aoz9Sx3HpM/7+lOGQw3mTpdG3GDzUwrTaI 0U8t2ewMX+aL4P6IjevRiDDK/lyYS0RyFIUcfieNhfLEv8tOR46IYtrA5X45OA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702700314; a=rsa-sha256; cv=none; b=tX+w7OTrFQeGQx5q2x8OlhbWsBcyFab6t0xij6bmOmachpWbYME/H7myxeT7/6EBQFsovv F9/xlbNYDJKhfNIBF1o58RaGBW89IoXXHVv9PSIiDUzCX46JOAbxCRc2VsIPh6rvQgg023 zujI6FS9hQ9IVR45MvuvnnISUbSf9+5CQsUwiRsthzzdIg9e78e7nKOQuRwKeng4DOf2jX 4QkPl+A9zFxLjE6WQNtdVjV1tEXRw3VzWfYQJ235XhvplNlM5kCfOjW9Icf2Q07acFjUG9 NgBDZhqyq6a0Rs4eS6+o8y12QCO1wITe5+l/ii3hczUIrr53BRNxmWCdZAw9GQ== 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=1702700314; 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=cnou5jyQI0rW2oB4kIsKku5gd2cH+4xA+YNPxqgL6o8=; b=Dwwybg36fDHEB4LQvX3p7EF9+yMYLkjG12iliJrLBRkHxnc0hhzljP4Lo1nOjJO2AD40VS EoT/ONC5F9I9Zk5i61fRxI/+0bNK857zFDe/ALBKgKHlgib1obkVkfdkNtzojBVgyGuqCu fqnSctWR/+rNF6bXvR259aKTO6uUBUPtPQAC/5KczweCAuShQpCwWodREul2kC3N3dXQN2 w+s+X/sKkLHe1JqA9DOvGZN/oJQ1CnrQFzgtBummcfHBi6XiJYRIyCuO9GLjY3k5jndqiB 2PCVZM68B7ur8lIzwK81eELr0sP239U7vKIkoDotRnx5C8+VHPuYk7VZpKHuLQ== 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 4SsXrp4yrTzfhn; Sat, 16 Dec 2023 04:18:34 +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 3BG4IYVI058997; Sat, 16 Dec 2023 04:18:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BG4IYmO058994; Sat, 16 Dec 2023 04:18:34 GMT (envelope-from git) Date: Sat, 16 Dec 2023 04:18:34 GMT Message-Id: <202312160418.3BG4IYmO058994@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: 9f1c1cfe69d8 - stable/14 - strfmon.3: Cleanup example code 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: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 9f1c1cfe69d80b5f17008d6963ac409ecbad817b Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=9f1c1cfe69d80b5f17008d6963ac409ecbad817b commit 9f1c1cfe69d80b5f17008d6963ac409ecbad817b Author: Jose Luis Duran AuthorDate: 2023-12-01 06:50:24 +0000 Commit: Konstantin Belousov CommitDate: 2023-12-16 04:17:51 +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