From 7e06f4708cbe8a8ace21d6629cb4b9c8c9340152 Mon Sep 17 00:00:00 2001 From: Yi Kong Date: Tue, 12 Jul 2022 13:17:47 +0800 Subject: [PATCH] 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 --- 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 double -drem(x, y) - double x, y; +drem(double x, double y) { return remainder(x, y); }