Blame SOURCES/glibc-rh1505492-prototypes-8.patch

c6d234
commit bf438382bd8ffcc614b01e9a273a577b3ed54f9f
c6d234
Author: Joseph Myers <joseph@codesourcery.com>
c6d234
Date:   Thu Nov 13 21:37:53 2014 +0000
c6d234
c6d234
    Use prototype definition for __strtol.
c6d234
    
c6d234
    This patch fixes those warnings by using a prototype definition for
c6d234
    __strtol.
c6d234
    
c6d234
    Tested for x86_64 that stripped installed shared libraries are
c6d234
    unchanged by this patch.
c6d234
    
c6d234
            * stdlib/strtol.c (__strtol): Use prototype definition.
c6d234
c6d234
Conflicts:
c6d234
	stdlib/strtol.c
c6d234
c6d234
Adjusted for missing backport of the fix for swbz#17594.
c6d234
c6d234
diff --git a/stdlib/strtol.c b/stdlib/strtol.c
c6d234
index 44e2af472ddc4144..67d758c57973b5d5 100644
c6d234
--- a/stdlib/strtol.c
c6d234
+++ b/stdlib/strtol.c
c6d234
@@ -101,10 +101,7 @@ libc_hidden_def (INTERNAL (strtol))
c6d234
 
c6d234
 
c6d234
 INT
c6d234
-strtol (nptr, endptr, base)
c6d234
-     const STRING_TYPE *nptr;
c6d234
-     STRING_TYPE **endptr;
c6d234
-     int base;
c6d234
+strtol (const STRING_TYPE *nptr, STRING_TYPE **endptr, int base)
c6d234
 {
c6d234
   return INTERNAL (__strtol_l) (nptr, endptr, base, 0, _NL_CURRENT_LOCALE);
c6d234
 }