Remove __P and convert to ANSI prototypes.

* Fix SCM ID's.
This commit is contained in:
obrien 2002-02-01 01:32:19 +00:00 committed by Sebastian Huber
parent 0e7db0c356
commit d785551a46
1 changed files with 4 additions and 7 deletions

View File

@ -33,6 +33,7 @@
#include <sys/cdefs.h>
__SCCSID("@(#)scandir.c 8.3 (Berkeley) 1/2/94");
__FBSDID("$FreeBSD$");
/*
* Scan the directory dirname calling select to make a list of selected
@ -64,15 +65,11 @@ __SCCSID("@(#)scandir.c 8.3 (Berkeley) 1/2/94");
(offsetof (struct dirent, d_name) + ((strlen((dp)->d_name)+1 + 3) &~ 3))
#endif
#ifndef __P
#define __P(args) ()
#endif
int
scandir (const char *dirname,
struct dirent ***namelist,
int (*select) __P((const struct dirent *)),
int (*dcomp) __P((const struct dirent **, const struct dirent **)))
scandir(const char *dirname, struct dirent ***namelist,
int (*select)(const struct dirent *), int (*dcomp)(const struct dirent **,
const struct dirent **))
{
register struct dirent *d, *p, **names;
register size_t nitems;