summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-09-17 14:40:24 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-09-17 14:40:24 +0000
commitf393150407f36f564a81fb882260679a1d4e460f (patch)
treec67f7175194ea10688825882319222ae62380aa4 /cpukit
parent2007-09-17 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-f393150407f36f564a81fb882260679a1d4e460f.tar.bz2
2007-09-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/src/semaphorecreatesupp.c: Fixed warning.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/ChangeLog4
-rw-r--r--cpukit/posix/src/semaphorecreatesupp.c9
2 files changed, 7 insertions, 6 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 744e1d564d..1485afdeca 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,5 +1,9 @@
2007-09-17 Joel Sherrill <joel.sherrill@oarcorp.com>
+ * posix/src/semaphorecreatesupp.c: Fixed warning.
+
+2007-09-17 Joel Sherrill <joel.sherrill@oarcorp.com>
+
* libmisc/dumpbuf/dumpbuf.c: Use printk.
2007-09-16 Ralf Corsépius <ralf.corsepius@rtems.org>
diff --git a/cpukit/posix/src/semaphorecreatesupp.c b/cpukit/posix/src/semaphorecreatesupp.c
index 77c6924fe5..87639a9500 100644
--- a/cpukit/posix/src/semaphorecreatesupp.c
+++ b/cpukit/posix/src/semaphorecreatesupp.c
@@ -39,6 +39,7 @@ int _POSIX_Semaphore_Create_support(
{
POSIX_Semaphore_Control *the_semaphore;
CORE_semaphore_Attributes *the_sem_attr;
+ char *name_p = (char *)name;
_Thread_Disable_dispatch();
@@ -108,11 +109,7 @@ int _POSIX_Semaphore_Create_support(
* Make the semaphore available for use.
*/
- _Objects_Open(
- &_POSIX_Semaphore_Information,
- &the_semaphore->Object,
- (char *) name
- );
+ _Objects_Open(&_POSIX_Semaphore_Information, &the_semaphore->Object, name_p);
*the_sem = the_semaphore;
@@ -121,7 +118,7 @@ int _POSIX_Semaphore_Create_support(
_POSIX_Semaphore_MP_Send_process_packet(
POSIX_SEMAPHORE_MP_ANNOUNCE_CREATE,
the_semaphore->Object.id,
- (char *) name,
+ name_p,
0 /* proxy id - Not used */
);
#endif