Loading...
stdlib/FreeBSD/strtoll.c Libc-1725.40.4 Libc-763.13
--- Libc/Libc-1725.40.4/stdlib/FreeBSD/strtoll.c
+++ Libc/Libc-763.13/stdlib/FreeBSD/strtoll.c
@@ -33,8 +33,6 @@
 #include <sys/cdefs.h>
 __FBSDID("$FreeBSD: src/lib/libc/stdlib/strtoll.c,v 1.22 2007/01/09 00:28:10 imp Exp $");
 
-#include "xlocale_private.h"
-
 #include <limits.h>
 #include <errno.h>
 #include <ctype.h>
@@ -47,8 +45,7 @@
  * alphabets and digits are each contiguous.
  */
 long long
-strtoll_l(const char * __restrict nptr, char ** __restrict endptr, int base,
-    locale_t loc)
+strtoll(const char * __restrict nptr, char ** __restrict endptr, int base)
 {
 	const char *s;
 	unsigned long long acc;
@@ -56,7 +53,6 @@
 	unsigned long long cutoff;
 	int neg, any, cutlim;
 
-	NORMALIZE_LOCALE(loc);
 	/*
 	 * Skip white space and pick up leading +/- sign if any.
 	 * If base is 0, allow 0x for hex and 0 for octal, else
@@ -65,7 +61,7 @@
 	s = nptr;
 	do {
 		c = *s++;
-	} while (isspace_l((unsigned char)c, loc));
+	} while (isspace((unsigned char)c));
 	if (c == '-') {
 		neg = 1;
 		c = *s++;
@@ -142,9 +138,3 @@
 		*endptr = (char *)(any ? s - 1 : nptr);
 	return (acc);
 }
-
-long long
-strtoll(const char * __restrict nptr, char ** __restrict endptr, int base)
-{
-	return strtoll_l(nptr, endptr, base, __current_locale());
-}