Skip to content

Commit

Permalink
Use prototype definition for __strtol.
Browse files Browse the repository at this point in the history
This patch fixes those warnings by using a prototype definition for
__strtol.

Tested for x86_64 that stripped installed shared libraries are
unchanged by this patch.

	* stdlib/strtol.c (__strtol): Use prototype definition.
  • Loading branch information
Joseph Myers committed Nov 13, 2014
1 parent 2a1cfd9 commit bf43838
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
2014-11-13 Joseph Myers <joseph@codesourcery.com>

* stdlib/strtol.c (__strtol): Use prototype definition.

[BZ #17594]
* stdlib/strtol.c (SYM__): New macro.
(SYM__1): Likewise.
Expand Down
5 changes: 1 addition & 4 deletions stdlib/strtol.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,7 @@ libc_hidden_def (INTERNAL (strtol))


INT
__strtol (nptr, endptr, base)
const STRING_TYPE *nptr;
STRING_TYPE **endptr;
int base;
__strtol (const STRING_TYPE *nptr, STRING_TYPE **endptr, int base)
{
return INTERNAL (__strtol_l) (nptr, endptr, base, 0, _NL_CURRENT_LOCALE);
}
Expand Down

0 comments on commit bf43838

Please sign in to comment.