1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

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.
This commit is contained in:
Joseph Myers
2014-11-13 21:37:53 +00:00
parent 2a1cfd94a2
commit bf438382bd
2 changed files with 3 additions and 4 deletions

View 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);
}