summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxreaddir/test.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--testsuites/psxtests/psxreaddir/test.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/testsuites/psxtests/psxreaddir/test.c b/testsuites/psxtests/psxreaddir/test.c
index d5d6015367..bc790c5233 100644
--- a/testsuites/psxtests/psxreaddir/test.c
+++ b/testsuites/psxtests/psxreaddir/test.c
@@ -40,11 +40,13 @@ DIR *directory_not;
#define __P(args)()
#endif
+/*
int scandir ( const char *dirname,
struct dirent *** namelist,
int (*select) __P((struct dirent *)),
- int (*dcomp) __P((const void *, const void *))
+ int (*dcomp) __P((const struct dirent **, const struct dirent **))
);
+*/
#if defined(__rtems__)
#define d_type d_reclen
@@ -168,13 +170,13 @@ int compare_ascending(const struct dirent **a, const struct dirent **b )
}
-int compare_descending( struct dirent **a, struct dirent **b )
+int compare_descending( const struct dirent **a, const struct dirent **b )
{
int i;
i = strcmp (
- (char *)((struct dirent *)(*b)->d_name),
- (char *)((struct dirent *)(*a)->d_name)
+ (char *)((const struct dirent *)(*b)->d_name),
+ (char *)((const struct dirent *)(*a)->d_name)
);
return i;