summaryrefslogtreecommitdiff
path: root/dirent
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1992-05-14 22:48:56 +0000
committerRoland McGrath <roland@gnu.org>1992-05-14 22:48:56 +0000
commite391d688ebcf64fd0d0efd76d46194ba5cfe0c20 (patch)
treef29753930f3ac8f2590631c0f62643329797e561 /dirent
parent27c5e498d7eb66dc73a8cb8554c446132b171a94 (diff)
Formerly ../dirent/scandir.c.~2~
Diffstat (limited to 'dirent')
-rw-r--r--dirent/scandir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dirent/scandir.c b/dirent/scandir.c
index 00063c56f7..5e5e701c0b 100644
--- a/dirent/scandir.c
+++ b/dirent/scandir.c
@@ -21,9 +21,9 @@ Cambridge, MA 02139, USA. */
#include <stdlib.h>
int
-DEFUN(scandir,(dir, namelist, select, cmp),
+DEFUN(scandir, (dir, namelist, select, cmp),
CONST char *dir AND
- struct dirent ***__namelist AND
+ struct dirent ***namelist AND
int EXFUN((*select), (struct dirent *)) AND
int EXFUN((*cmp), (CONST PTR, CONST PTR)))
{
@@ -41,7 +41,7 @@ DEFUN(scandir,(dir, namelist, select, cmp),
i = 0;
while ((d = readdir (dp)) != NULL)
- if ((*select) (dp))
+ if ((*select) (d))
{
if (i == vsize)
{