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/atoll.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'lib/libc/stdlib/atoll.c') diff --git a/lib/libc/stdlib/atoll.c b/lib/libc/stdlib/atoll.c index c0a7212..a3c15a2 100644 --- a/lib/libc/stdlib/atoll.c +++ b/lib/libc/stdlib/atoll.c @@ -33,18 +33,11 @@ * $FreeBSD$ */ -#include #include long long atoll(str) const char *str; { - long long r; - int saverr; - - saverr = errno; - r = strtoll(str, (char **)NULL, 10); - errno = saverr; - return r; + return strtoll(str, (char **)NULL, 10); } -- cgit v1.1