diff options
author | obrien <obrien@FreeBSD.org> | 2002-02-01 01:32:19 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-02-01 10:33:14 +0100 |
commit | d785551a46a786ed08db6b5efd2e1032d513f234 (patch) | |
tree | d0884dedecbf1d6757c4a8ed536d93dc37ad5483 /newlib | |
parent | 0e7db0c356c0c47e34bd2cac1d3b83386540a7f7 (diff) | |
download | newlib-d785551a46a786ed08db6b5efd2e1032d513f234.zip newlib-d785551a46a786ed08db6b5efd2e1032d513f234.tar.gz newlib-d785551a46a786ed08db6b5efd2e1032d513f234.tar.bz2 |
Remove __P and convert to ANSI prototypes.
* Fix SCM ID's.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/libc/posix/scandir.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/newlib/libc/posix/scandir.c b/newlib/libc/posix/scandir.c index 97a16cf..95be977 100644 --- a/newlib/libc/posix/scandir.c +++ b/newlib/libc/posix/scandir.c @@ -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; |