mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 08:11:08 +00:00
(fts_open): Use prototypes for COMPAR decl.
This commit is contained in:
parent
6d5cbf7b35
commit
8ebd0a71be
4
io/fts.c
4
io/fts.c
@ -90,7 +90,7 @@ FTS *
|
||||
fts_open(argv, options, compar)
|
||||
char * const *argv;
|
||||
register int options;
|
||||
int (*compar)();
|
||||
int (*compar) __P((const FTSENT **, const FTSENT **));
|
||||
{
|
||||
register FTS *sp;
|
||||
register FTSENT *p, *root;
|
||||
@ -108,7 +108,7 @@ fts_open(argv, options, compar)
|
||||
if ((sp = malloc((u_int)sizeof(FTS))) == NULL)
|
||||
return (NULL);
|
||||
bzero(sp, sizeof(FTS));
|
||||
sp->fts_compar = compar;
|
||||
sp->fts_compar = (int (*) __P((const void *, const void *))) compar;
|
||||
sp->fts_options = options;
|
||||
|
||||
/* Logical walks turn on NOCHDIR; symbolic links are too hard. */
|
||||
|
Loading…
Reference in New Issue
Block a user