Fix SunOS4 build failure.

* collect2.c (extract_init_priority): Use atoi instead of strtoul.

From-SVN: r21853
This commit is contained in:
Jason Merrill 1998-08-19 13:07:52 +00:00 committed by Jim Wilson
parent 9b559a2720
commit b77623bc58
2 changed files with 5 additions and 1 deletions

View 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".

View 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.