summaryrefslogtreecommitdiffstats
path: root/newlib/libm/common/sf_nan.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2003-07-09 17:52:31 +0000
committerAlexandre Oliva <aoliva@redhat.com>2003-07-09 17:52:31 +0000
commit03d65dd99ba593d2dab1a8151fa7766b650755ac (patch)
treea5694d92c663d4d6ab36f0334bcea7ba0032fbf9 /newlib/libm/common/sf_nan.c
parent4d782b426a09120642906e12e21bf669b7bb77db (diff)
downloadcygnal-03d65dd99ba593d2dab1a8151fa7766b650755ac.tar.gz
cygnal-03d65dd99ba593d2dab1a8151fa7766b650755ac.tar.bz2
cygnal-03d65dd99ba593d2dab1a8151fa7766b650755ac.zip
* libc/include/math.h (nan, nanf): Update prototype to C99.
* libm/common/s_nan.c (nan): Likewise. * libm/common/s_nanf.c (nanf, nan): Likewise. * libc/sys/linux/cmath/math_private.h (nan, nanf): Likewise.
Diffstat (limited to 'newlib/libm/common/sf_nan.c')
-rw-r--r--newlib/libm/common/sf_nan.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libm/common/sf_nan.c b/newlib/libm/common/sf_nan.c
index c8d7027f8..831f3f79f 100644
--- a/newlib/libm/common/sf_nan.c
+++ b/newlib/libm/common/sf_nan.c
@@ -5,7 +5,7 @@
#include "fdlibm.h"
- float nanf()
+ float nanf(const char *unused)
{
float x;
@@ -15,9 +15,9 @@
#ifdef _DOUBLE_IS_32BITS
- double nan()
+ double nan(const char *arg)
{
- return (double) nanf();
+ return (double) nanf(arg);
}
#endif /* defined(_DOUBLE_IS_32BITS) */