git: 52c8052938f9 - stable/13 - libc: ANSIfy div / ldiv function definitions
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 04 Aug 2022 00:35:17 UTC
The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=52c8052938f97b85a823cf888a5b003455f9ea7a commit 52c8052938f97b85a823cf888a5b003455f9ea7a Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2022-07-28 14:17:33 +0000 Commit: Ed Maste <emaste@FreeBSD.org> 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 <stdlib.h> /* 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 <stdlib.h> /* ldiv_t */ ldiv_t -ldiv(num, denom) - long num, denom; +ldiv(long num, long denom) { ldiv_t r;