]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Use prototype definition for __strtol.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 13 Nov 2014 21:37:53 +0000 (21:37 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 13 Nov 2014 21:37:53 +0000 (21:37 +0000)
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.

ChangeLog
stdlib/strtol.c

index 59c30e09a9ba89e2ba62dc1b5961e62f5aff5237..caf1ce99408bc4b2e74a2ef8c6b906db76a928e6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index bd5918059543ba72be04de4db8b6effd95d397f7..60a33c0060b038606fba28fd3db0a43e07d48258 100644 (file)
@@ -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);
 }