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); }