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/atoi.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'lib/libc/stdlib/atoi.c') diff --git a/lib/libc/stdlib/atoi.c b/lib/libc/stdlib/atoi.c index 8e98a96e7..17c91c1 100644 --- a/lib/libc/stdlib/atoi.c +++ b/lib/libc/stdlib/atoi.c @@ -37,17 +37,11 @@ static char sccsid[] = "@(#)atoi.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ -#include #include int atoi(str) const char *str; { - int r, saverr; - - saverr = errno; - r = (int)strtol(str, (char **)NULL, 10); - errno = saverr; - return r; + return (int)strtol(str, (char **)NULL, 10); } -- cgit v1.1