Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jul 2022 14:33:08 GMT
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: a8a43edc0f85 - main - libc: ANSIfy div / ldiv function definitions
Message-ID:  <202207281433.26SEX8rR029501@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=a8a43edc0f856167c483b554a89a868f53a6ce25

commit a8a43edc0f856167c483b554a89a868f53a6ce25
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2022-07-28 14:17:33 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
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 <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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207281433.26SEX8rR029501>