From 85231522bb178ebe0957529de20b7f3dda81168c Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 21 Oct 2015 11:57:23 +0000 Subject: Convert a few more function definitions to prototype style. This patch converts a few more function definitions in glibc from old-style K&R to prototype style. This is sufficient to build and test on x86_64 and x86 with -Wold-style-definition (I'll test on some more architectures before proposing the actual addition of -Wold-style-definition). Tested for x86_64 and x86 with -Wold-style-definition in use (testsuite - this patch affects files containing assertions). * io/fts.c (fts_open): Convert to prototype-style function definition. * malloc/mcheck.c (mcheck): Likewise. (mcheck_pedantic): Likewise. * posix/regexec.c (re_search_2_stub): Likewise. Use internal_function. (re_search_internal): Likewise. * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to prototype-style function definition. * sunrpc/clnt_udp.c (clntudp_call): Likewise. * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise. * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise. (xdr_utmpptr): Likewise. (xdr_utmparr): Likewise. (xdr_utmpidle): Likewise. (xdr_utmpidleptr): Likewise. (xdr_utmpidlearr): Likewise. --- io/fts.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'io') diff --git a/io/fts.c b/io/fts.c index ac1d340da8..f83267611f 100644 --- a/io/fts.c +++ b/io/fts.c @@ -85,10 +85,8 @@ static int fts_safe_changedir (FTS *, FTSENT *, int, const char *) #define BREAD 3 /* fts_read */ FTS * -fts_open(argv, options, compar) - char * const *argv; - int options; - int (*compar) (const FTSENT **, const FTSENT **); +fts_open (char * const *argv, int options, + int (*compar) (const FTSENT **, const FTSENT **)) { FTS *sp; FTSENT *p, *root; -- cgit v1.2.3