diff options
Diffstat (limited to 'lib/libc/stdlib/atof.c')
| -rw-r--r-- | lib/libc/stdlib/atof.c | 9 | 
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/libc/stdlib/atof.c b/lib/libc/stdlib/atof.c index e6dffa9184d4..0de674f2f272 100644 --- a/lib/libc/stdlib/atof.c +++ b/lib/libc/stdlib/atof.c @@ -37,18 +37,11 @@  static char sccsid[] = "@(#)atof.c	8.1 (Berkeley) 6/4/93";  #endif /* LIBC_SCCS and not lint */ -#include <errno.h>  #include <stdlib.h>  double  atof(ascii)  	const char *ascii;  { -	double r; -	int saverr; - -	saverr = errno; -	r = strtod(ascii, (char **)NULL); -	errno = saverr; -	return r; +	return strtod(ascii, (char **)NULL);  }  | 
