From nobody Thu Aug 4 00:35:17 2022 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 4LyqWV1RcNz4YGS6; Thu, 4 Aug 2022 00:35:18 +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 4LyqWV0sBTz3mpb; Thu, 4 Aug 2022 00:35:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659573318; 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=zAte3piaynaN1Qe88sZZsCZqwGm8kIxTfrpGZkCFIoE=; b=g8HY6hJ7ecK16YbGz5ywxkfMC1X231O2mF6GSvxc7x4sloPXGrSoG1Z47akpgAcKmVIdye XizhdpD1kFL7Yad0aiTLYMJlPBj2k0jBaztrYqIaXYRT7A80Yj4QBGhtV72zI/gU62g2uL zn8VjrH4OZRszzuFxAi3o+eHPviFzI37AVwIxVFAlrlmh6voqE7uYcyN0vi/0WrG4aNxd2 qNYXffeaYAdErxCjetHD1DEe68GEP1nLj0DPPizAS3oz/imYz87ShDs9RiuSGMhp5P0Egr cFRmseqs1pqCpwSyBPMEpBOutVsxGR8c9Zzn9+vtOewe4iWZU+RxSRfWq8UXWg== 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 4LyqWT70BJz19n8; Thu, 4 Aug 2022 00:35:17 +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 2740ZHJJ069928; Thu, 4 Aug 2022 00:35:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2740ZH9Y069927; Thu, 4 Aug 2022 00:35:17 GMT (envelope-from git) Date: Thu, 4 Aug 2022 00:35:17 GMT Message-Id: <202208040035.2740ZH9Y069927@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 52c8052938f9 - stable/13 - libc: ANSIfy div / ldiv function definitions 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: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 52c8052938f97b85a823cf888a5b003455f9ea7a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659573318; 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=zAte3piaynaN1Qe88sZZsCZqwGm8kIxTfrpGZkCFIoE=; b=BVNzZ0TSH5EJ8rkrf6GZLOPkdNygLRoWnDwIRnGf3JUTkTeQqezJ9t3MKfesx77mWDP3H4 qUiiOxjIHvgEb6FqBN9FiPgPewCSgdWH0VeZjI8vgx3Eo082Qx7MjUnkGh6+0RDhgZsffN KX8QQ/+WVD+eJJ0vqcEMhA23n19/kd3jb3fiaqGEvppqTLCD1+livBLhi9xyVci13OCD5n UNYjyfEdJnlHkgg/NLiP3VVEVvVk8xOYjZVoJc7azDSm65KPsDNVWzaclI5hBUZJAGIuRy DOKj9AXHIO+ORVmzEjApWiujv26aIz3pWmOO6VoPOQv1tyRzynxwxixTvY9I0A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659573318; a=rsa-sha256; cv=none; b=mLmPOD4/knG6bCxFTdPV1Lz6XuyAruodww5GkQ/xxFu5YJE2d2DvpnFpuPgOaTWh9uSLNI TSY5ph+cNL4P+MbftcAMzVzHt2jqBn5mlnAAXwkuFS65mUyPb7ITDWBk+ExZVMQxR3KIeK XFZb9M2aL1iW6iwAlCg1pP9QFxFkYdbudufucM3sVJDucCchE3C4YhahfdtjMVZm3PsGKd gQro0+2W9pLAvvAi/A4y0UVVF1QQCAhbfTU2JZhugJ+YyUyTiwYRzWrnC6DN9iPlKWMs/L iQV0o0PhWWHsVieqW/k0IJqd0iwe7Ah/7DZPqAcu8kQnvDaJBBsSLZwLJYMFQQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=52c8052938f97b85a823cf888a5b003455f9ea7a commit 52c8052938f97b85a823cf888a5b003455f9ea7a Author: Ed Maste AuthorDate: 2022-07-28 14:17:33 +0000 Commit: Ed Maste CommitDate: 2022-08-04 00:35:09 +0000 libc: ANSIfy div / ldiv function definitions MFC after: 1 week Sponsored by: The FreeBSD Foundation (cherry picked from commit a8a43edc0f856167c483b554a89a868f53a6ce25) --- lib/libc/stdlib/div.c | 3 +-- lib/libc/stdlib/ldiv.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/libc/stdlib/div.c b/lib/libc/stdlib/div.c index b7efb1dfc595..82a3b02b6df1 100644 --- a/lib/libc/stdlib/div.c +++ b/lib/libc/stdlib/div.c @@ -41,8 +41,7 @@ __FBSDID("$FreeBSD$"); #include /* div_t */ div_t -div(num, denom) - int num, denom; +div(int num, int denom) { div_t r; diff --git a/lib/libc/stdlib/ldiv.c b/lib/libc/stdlib/ldiv.c index f55ad6de4faf..954626a0c835 100644 --- a/lib/libc/stdlib/ldiv.c +++ b/lib/libc/stdlib/ldiv.c @@ -41,8 +41,7 @@ __FBSDID("$FreeBSD$"); #include /* ldiv_t */ ldiv_t -ldiv(num, denom) - long num, denom; +ldiv(long num, long denom) { ldiv_t r;