Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jul 2022 14:03:32 GMT
From:      Li-Wen Hsu <lwhsu@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 7f753c0c3377 - stable/13 - msun: Rewrite function definitions with identifier lists
Message-ID:  <202207151403.26FE3W20033809@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by lwhsu:

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

commit 7f753c0c33772dd695a39576356e3a407c4d9ad3
Author:     Yi Kong <yikong@google.com>
AuthorDate: 2022-07-12 05:17:47 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2022-07-15 14:02:57 +0000

    msun: Rewrite function definitions with identifier lists
    
    This syntax is removed in C2x proposal N2432.
    
    Reviewed by:    pfg
    MFC after:      3 days
    Differential Revision:  https://reviews.freebsd.org/D35771
    
    (cherry picked from commit 7e06f4708cbe8a8ace21d6629cb4b9c8c9340152)
---
 lib/msun/src/w_cabsf.c | 3 +--
 lib/msun/src/w_drem.c  | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/lib/msun/src/w_cabsf.c b/lib/msun/src/w_cabsf.c
index e7bfe220a9a5..b5065c8a5683 100644
--- a/lib/msun/src/w_cabsf.c
+++ b/lib/msun/src/w_cabsf.c
@@ -15,8 +15,7 @@ static const char rcsid[] =
 #include "math_private.h"
 
 float
-cabsf(z)
-	float complex z;
+cabsf(float complex z)
 {
 
 	return hypotf(crealf(z), cimagf(z));
diff --git a/lib/msun/src/w_drem.c b/lib/msun/src/w_drem.c
index 0f6840934fef..74008a5c8099 100644
--- a/lib/msun/src/w_drem.c
+++ b/lib/msun/src/w_drem.c
@@ -8,8 +8,7 @@
 #include <math.h>
 
 double
-drem(x, y)
-	double x, y;
+drem(double x, double y)
 {
 	return remainder(x, y);
 }



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