OSDN Git Service

Fix SunOS4 build failure.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 Aug 1998 13:07:52 +0000 (13:07 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 Aug 1998 13:07:52 +0000 (13:07 +0000)
* collect2.c (extract_init_priority): Use atoi instead of strtoul.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21853 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/collect2.c

index 90a855d..5225264 100644 (file)
@@ -1,3 +1,7 @@
+Wed Aug 19 13:06:47 1998  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * collect2.c (extract_init_priority): Use atoi instead of strtoul.
+
 Wed Aug 19 13:51:35 1998  Hans-Peter Nilsson  <hp@axis.se>
 
        * tm.texi (Misc): Fix typo "teh".
index c9b471d..cc0837a 100644 (file)
@@ -1753,7 +1753,7 @@ extract_init_priority (name)
   pos += 10; /* strlen ("GLOBAL__X_") */
 
   /* Extract init_p number from ctor/dtor name. */
-  return strtoul(name + pos, NULL, 10);
+  return atoi (name + pos);
 }
 
 /* Insertion sort the ids from ctor/dtor list HEAD_PTR in descending order.