diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-08-19 13:07:52 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-08-19 13:07:52 +0000 |
commit | d3b0ac78e9d53329b22cdb43e0b148f48a89828b (patch) | |
tree | 2d7c8f0c90987dcc368fbb4268eaaaace3b9a414 /gcc/collect2.c | |
parent | 37c9cc60fb49f0ff9aee2e34d3a5c593fcb818b6 (diff) | |
download | gcc-d3b0ac78e9d53329b22cdb43e0b148f48a89828b.tar.gz |
Fix SunOS4 build failure.
* 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
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r-- | gcc/collect2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c index c9b471d4ba8..cc0837aaf78 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -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. |