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