summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2004-03-05 15:51:13 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2004-03-05 15:51:13 +0000
commit3c0c89888db501fd0a63533881bbf5f915716f8d (patch)
treee9f844bddeb0aea68486813fc2ecb686a34426fe
parent2004-03-05 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-3c0c89888db501fd0a63533881bbf5f915716f8d.tar.bz2
2004-03-05 Joel Sherrill <joel@OARcorp.com>
* psxfile01/test.c, psxmsgq01/init.c, psxstat/test.c, psxtimer/psxtimer.c: Eliminate warnings and typos.
-rw-r--r--testsuites/psxtests/ChangeLog5
-rw-r--r--testsuites/psxtests/psxfile01/test.c2
-rw-r--r--testsuites/psxtests/psxmsgq01/init.c2
-rw-r--r--testsuites/psxtests/psxstat/test.c2
-rw-r--r--testsuites/psxtests/psxtimer/psxtimer.c2
5 files changed, 10 insertions, 3 deletions
diff --git a/testsuites/psxtests/ChangeLog b/testsuites/psxtests/ChangeLog
index f4405b8769..f905638140 100644
--- a/testsuites/psxtests/ChangeLog
+++ b/testsuites/psxtests/ChangeLog
@@ -1,3 +1,8 @@
+2004-03-05 Joel Sherrill <joel@OARcorp.com>
+
+ * psxfile01/test.c, psxmsgq01/init.c, psxstat/test.c,
+ psxtimer/psxtimer.c: Eliminate warnings and typos.
+
2004-02-26 Sébastien Barré <sbarre@sdelcc.com>
PR 582/core
diff --git a/testsuites/psxtests/psxfile01/test.c b/testsuites/psxtests/psxfile01/test.c
index 1e61fef2b8..3d27da4dd8 100644
--- a/testsuites/psxtests/psxfile01/test.c
+++ b/testsuites/psxtests/psxfile01/test.c
@@ -80,7 +80,7 @@ void dump_statbuf( struct stat *buf )
printf( "....st_dev (0x%x:0x%x)\n", major1, minor1 );
printf( "....st_ino %x may vary by small amount\n",
(unsigned int) buf->st_ino );
- printf( "....mode = %08o\n", buf->st_mode );
+ printf( "....mode = %08o\n", (unsigned int) buf->st_mode );
printf( "....nlink = %d\n", buf->st_nlink );
printf( "....uid = %d\n", buf->st_uid );
diff --git a/testsuites/psxtests/psxmsgq01/init.c b/testsuites/psxtests/psxmsgq01/init.c
index 85866bc0c2..9aa65868db 100644
--- a/testsuites/psxtests/psxmsgq01/init.c
+++ b/testsuites/psxtests/psxmsgq01/init.c
@@ -1004,8 +1004,10 @@ void verify_with_threads()
int status;
pthread_t id;
Test_Message_t *ptr;
+#if 0
unsigned int priority;
char message[100];
+#endif
#if 0
diff --git a/testsuites/psxtests/psxstat/test.c b/testsuites/psxtests/psxstat/test.c
index b9426a2328..f6189d4782 100644
--- a/testsuites/psxtests/psxstat/test.c
+++ b/testsuites/psxtests/psxstat/test.c
@@ -197,7 +197,7 @@ void stat_a_file(
printf("\n...st_dev (0x%x:0x%x)\n", major1, minor1 );
printf( "...st_ino %x\n", (int) statbuf.st_ino );
- printf( "...st_mode %o\n", statbuf.st_mode );
+ printf( "...st_mode %o\n", (unsigned int) statbuf.st_mode );
printf( "...st_nlink %x\n", statbuf.st_nlink );
printf( "...st_uid %d\n", statbuf.st_uid );
printf( "...st_gid %d\n", statbuf.st_gid );
diff --git a/testsuites/psxtests/psxtimer/psxtimer.c b/testsuites/psxtests/psxtimer/psxtimer.c
index ee217523af..145207308c 100644
--- a/testsuites/psxtests/psxtimer/psxtimer.c
+++ b/testsuites/psxtests/psxtimer/psxtimer.c
@@ -328,7 +328,7 @@ void *POSIX_Init (
params_c.period.tv_nsec = 000000000; /* nanoseconds */
params_c.signo = SIGALRM;
if (pthread_create (&tc, &attr, task_c, &params_c) != 0) {
- perror ("Error in trhead create for task c\n");
+ perror ("Error in thread create for task c\n");
}