summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/atof.c
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2015-09-20 20:24:28 +0000
committerrodrigc <rodrigc@FreeBSD.org>2015-09-20 20:24:28 +0000
commit5919af45fe0fdd5a425228bbc8383aa5b0798c61 (patch)
treebe0fcdcc2e09e35233a813ebe7bb4842caab3e62 /lib/libc/stdlib/atof.c
parent74c1506b3359ee725c9031331908b717460830dc (diff)
downloadFreeBSD-src-5919af45fe0fdd5a425228bbc8383aa5b0798c61.zip
FreeBSD-src-5919af45fe0fdd5a425228bbc8383aa5b0798c61.tar.gz
Use ANSI C prototypes. Eliminates -Wold-style-definition warnings.
Diffstat (limited to 'lib/libc/stdlib/atof.c')
-rw-r--r--lib/libc/stdlib/atof.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/libc/stdlib/atof.c b/lib/libc/stdlib/atof.c
index 3514ae3..0458eb9 100644
--- a/lib/libc/stdlib/atof.c
+++ b/lib/libc/stdlib/atof.c
@@ -42,16 +42,13 @@ __FBSDID("$FreeBSD$");
#include <xlocale.h>
double
-atof(ascii)
- const char *ascii;
+atof(const char *ascii)
{
return strtod(ascii, (char **)NULL);
}
double
-atof_l(ascii, locale)
- const char *ascii;
- locale_t locale;
+atof_l(const char *ascii, locale_t locale)
{
return strtod_l(ascii, (char **)NULL, locale);
}
OpenPOWER on IntegriCloud