From nobody Thu Jul 28 14:33:08 2022 X-Original-To: dev-commits-src-main@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 4LttRS4CwTz4Xtm9; Thu, 28 Jul 2022 14:33:08 +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 4LttRS3jJ4z43YN; Thu, 28 Jul 2022 14:33:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659018788; 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=4vYnFvCZMiENogLew4Ydp6XFMLKmKSLA6H0P5iTHtLk=; b=aS82mGVGh7Pr73N694aUdqx1Py+BklUQt/zx/x11HBTIV18CzgSxU92y5QlII+8pF7v8jX UvWuJsJGBri4c3TXq2ZUfF+4E1coMYYYObjcUY6NokwdOMmwFrKwEF4y0UfuCrnM7b0W2F w0ODvfC1erWpNm87ZJgyhSgvjE7aO62GICYZxzA7ii6BxykP6XiLniuKCzIBhmdLUbCEl0 TaYlgZdZMGrJT+Zt6OFex7SCC307y7kGDW7hHyQQ7rqA/AoDJST4D2b5RG4uC0S/UoFNt2 Y86ZtpjXL9X4Ptcpwm1YHjCKjNQGoot25CjRxBcqzC3et/2inI6a37t9Tn/Vww== 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 4LttRS2mD6z108f; Thu, 28 Jul 2022 14:33:08 +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 26SEX8tg029502; Thu, 28 Jul 2022 14:33:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26SEX8rR029501; Thu, 28 Jul 2022 14:33:08 GMT (envelope-from git) Date: Thu, 28 Jul 2022 14:33:08 GMT Message-Id: <202207281433.26SEX8rR029501@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: a8a43edc0f85 - main - libc: ANSIfy div / ldiv function definitions List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: a8a43edc0f856167c483b554a89a868f53a6ce25 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659018788; 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=4vYnFvCZMiENogLew4Ydp6XFMLKmKSLA6H0P5iTHtLk=; b=j+En5a7yTxCpQC4k++KNwm/OJrLRv2Z7JZuxL5eJ9v1xbeUUpy9PVKH6DMmWp1+RUe0wD8 ypo06D6V6hfc+eViF67sjZeIFCKdYwsTyxUdIbnLeU6W58GUMGtlN8P/eccvm9OWHg7QEg ta4BCVY6VFh+eNyxjP6nu+wq5EyKn5MLdEAzYa//nsldiCD8sdhByipR2nCpLQoJWpT5wK ejzpx9qTp+agXeE6m9UyxavDUilMQlomGD28oAKjCpTy7JZvtTInBY1p2FLMVYyDrcBsxd 6XHueEdp34NEOzrGfIW6EQkmeDXLgQQ5Jzifa5g9dnFakObJZ9lfxy5gzdksvQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659018788; a=rsa-sha256; cv=none; b=W3OtHsJ1fuQnO/7siHj8RbqNc1XiIjYjDuIWkEU6mCcDsydwZPps+EhxJ3gKVFLjDwB7xN vgVOnPfME65GCUZN8NdW65DUIZZcb4XlZYvNXT2DBMd7SERMNU1OcUepA7QF7F+UjS018p 6X9PT6SHWzJdrT+XVgtI32WT4LbvLOn9m/CQ9fEyIEhksZ1voGe3cmTcU2nNEVdify61BW t4XdU8cdqUNliLtG9mvN+e3wXSOL5L7blqNt0XLB9P4cRcCMIcQurtJ6dbLEYExRbvEEmd g9vhRNwMxaBwELC9qxZ3ToVZTT/Yzg+dKEUN5DhZCVCwM5sJl4SmBlZR3eLpYw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=a8a43edc0f856167c483b554a89a868f53a6ce25 commit a8a43edc0f856167c483b554a89a868f53a6ce25 Author: Ed Maste AuthorDate: 2022-07-28 14:17:33 +0000 Commit: Ed Maste CommitDate: 2022-07-28 14:32:48 +0000 libc: ANSIfy div / ldiv function definitions MFC after: 1 week Sponsored by: The FreeBSD Foundation --- 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;