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