summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2003-06-12 15:41:19 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2003-06-12 15:41:19 +0000
commita9785892ff22864daba6b132e82839b8d73de579 (patch)
tree9d86ecd64351fd94a037375162346e64bdb02dc3 /testsuites/psxtests
parente99ff4266e52dacf3245b0790a92f75aa555c65d (diff)
downloadrtems-a9785892ff22864daba6b132e82839b8d73de579.tar.bz2
2003-06-12 Joel Sherrill <joel@OARcorp.com>
* psxchroot01/test.c, psxreaddir/test.c: Removed warnings.
Diffstat (limited to '')
-rw-r--r--testsuites/psxtests/ChangeLog4
-rw-r--r--testsuites/psxtests/psxchroot01/test.c1
-rw-r--r--testsuites/psxtests/psxreaddir/test.c10
3 files changed, 11 insertions, 4 deletions
diff --git a/testsuites/psxtests/ChangeLog b/testsuites/psxtests/ChangeLog
index 0557f57715..f5b5cb38a8 100644
--- a/testsuites/psxtests/ChangeLog
+++ b/testsuites/psxtests/ChangeLog
@@ -1,3 +1,7 @@
+2003-06-12 Joel Sherrill <joel@OARcorp.com>
+
+ * psxchroot01/test.c, psxreaddir/test.c: Removed warnings.
+
2003-05-29 Joel Sherrill <joel@OARcorp.com>
* psx02/init.c, psx04/init.c, psx13/test.c, psxchroot01/test.c,
diff --git a/testsuites/psxtests/psxchroot01/test.c b/testsuites/psxtests/psxchroot01/test.c
index 6716d8b4c3..2e2f87c09c 100644
--- a/testsuites/psxtests/psxchroot01/test.c
+++ b/testsuites/psxtests/psxchroot01/test.c
@@ -28,6 +28,7 @@
#include <unistd.h>
#include <errno.h>
#include <rtems/libio.h>
+#include <rtems/userenv.h>
#include <pmacros.h>
void touch( char *file )
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;