diff options
author | Joseph Myers <joseph@codesourcery.com> | 2014-11-13 21:37:53 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2014-11-13 21:37:53 +0000 |
commit | bf438382bd8ffcc614b01e9a273a577b3ed54f9f (patch) | |
tree | 2ac9340e21d88bbce258c44546a674145617bec2 | |
parent | 2a1cfd94a26e0fa96d8f284897213b65c60142d6 (diff) | |
download | glibc-bf438382bd8ffcc614b01e9a273a577b3ed54f9f.zip glibc-bf438382bd8ffcc614b01e9a273a577b3ed54f9f.tar.gz glibc-bf438382bd8ffcc614b01e9a273a577b3ed54f9f.tar.bz2 |
Use prototype definition for __strtol.
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.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | stdlib/strtol.c | 5 |
2 files changed, 3 insertions, 4 deletions
@@ -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. diff --git a/stdlib/strtol.c b/stdlib/strtol.c index bd59180..60a33c0 100644 --- a/stdlib/strtol.c +++ b/stdlib/strtol.c @@ -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); } |