(fts_open): Use prototypes for COMPAR decl.

This commit is contained in:
Roland McGrath 1996-01-24 03:02:14 +00:00
parent 6d5cbf7b35
commit 8ebd0a71be

View File

@ -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. */