From a6e7c78be57ebd99da59ac7e960f115badce24fd Mon Sep 17 00:00:00 2001 From: ache Date: Sun, 30 Dec 2001 03:34:46 +0000 Subject: Back out errno preserving --- lib/libc/stdlib/atof.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'lib/libc/stdlib/atof.c') diff --git a/lib/libc/stdlib/atof.c b/lib/libc/stdlib/atof.c index e6dffa9..0de674f 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 #include 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); } -- cgit v1.1