]> git.saurik.com Git - apple/libc.git/blobdiff - stdlib/FreeBSD/strtoul.c.patch
Libc-763.11.tar.gz
[apple/libc.git] / stdlib / FreeBSD / strtoul.c.patch
index 03ed5311093580cc4dd5b8fff80b5122d05dca61..9c564313eb47164904a3934b106fdd9f82b8c566 100644 (file)
@@ -1,15 +1,15 @@
---- strtoul.c.orig     2003-05-20 15:23:25.000000000 -0700
-+++ strtoul.c  2005-02-17 12:52:46.000000000 -0800
-@@ -37,6 +37,8 @@
+--- strtoul.c.bsdnew   2009-11-13 14:11:52.000000000 -0800
++++ strtoul.c  2009-11-13 14:11:52.000000000 -0800
+@@ -33,6 +33,8 @@ static char sccsid[] = "@(#)strtoul.c        8.
  #include <sys/cdefs.h>
- __FBSDID("$FreeBSD: src/lib/libc/stdlib/strtoul.c,v 1.16 2002/09/06 11:23:59 tjr Exp $");
+ __FBSDID("$FreeBSD: src/lib/libc/stdlib/strtoul.c,v 1.19 2007/01/09 00:28:10 imp Exp $");
  
 +#include "xlocale_private.h"
 +
  #include <limits.h>
  #include <ctype.h>
  #include <errno.h>
-@@ -49,7 +51,8 @@
+@@ -45,7 +47,8 @@ __FBSDID("$FreeBSD: src/lib/libc/stdlib/
   * alphabets and digits are each contiguous.
   */
  unsigned long
@@ -19,7 +19,7 @@
  {
        const char *s;
        unsigned long acc;
-@@ -57,13 +60,14 @@
+@@ -53,13 +56,14 @@ strtoul(const char * __restrict nptr, ch
        unsigned long cutoff;
        int neg, any, cutlim;
  
@@ -35,7 +35,7 @@
        if (c == '-') {
                neg = 1;
                c = *s++;
-@@ -117,3 +121,9 @@
+@@ -116,3 +120,9 @@ noconv:
                *endptr = (char *)(any ? s - 1 : nptr);
        return (acc);
  }