2007-03-27 Ralf Corsépius <ralf.corsepius@rtems.org>

* libcsupport/src/scandir.c: Eliminate __P().
This commit is contained in:
Ralf Corsepius
2007-03-27 15:44:14 +00:00
parent a52a20fc01
commit 0f0b5e876e
2 changed files with 3 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
2007-03-27 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/scandir.c: Eliminate __P().
* pppd/chap.h, pppd/chap_ms.h, pppd/fsm.h, pppd/ipcp.h,
pppd/lcp.h, pppd/magic.h, pppd/md4.h, pppd/pppd.h, pppd/upap.h:
Eliminate __P().

View File

@@ -72,16 +72,12 @@ static char sccsid[] = "@(#)scandir.c 5.10 (Berkeley) 2/23/91";
#define DIRSIZ(dp) \
((sizeof (struct dirent) - (NAME_MAX+1)) + (((dp)->d_namlen+1 + 3) &~ 3))
#ifndef __P
#define __P(args) ()
#endif
int
scandir(dirname, namelist, select, dcomp)
const char *dirname;
struct dirent ***namelist;
int (*select) __P((struct dirent *));
int (*dcomp) __P((const void *, const void *));
int (*select)(struct dirent *);
int (*dcomp)(const struct dirent **, const struct dirent **);
{
register struct dirent *d = NULL;
register struct dirent *p = NULL;