mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 22:48:23 +00:00
2007-03-27 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/scandir.c: Eliminate __P().
This commit is contained in:
@@ -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().
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user