From bf438382bd8ffcc614b01e9a273a577b3ed54f9f Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Thu, 13 Nov 2014 21:37:53 +0000 Subject: 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. --- stdlib/strtol.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'stdlib/strtol.c') diff --git a/stdlib/strtol.c b/stdlib/strtol.c index bd59180595..60a33c0060 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); } -- cgit 1.4.1