From f393150407f36f564a81fb882260679a1d4e460f Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 17 Sep 2007 14:40:24 +0000 Subject: 2007-09-17 Joel Sherrill * posix/src/semaphorecreatesupp.c: Fixed warning. --- cpukit/ChangeLog | 4 ++++ cpukit/posix/src/semaphorecreatesupp.c | 9 +++------ 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'cpukit') diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 744e1d564d..1485afdeca 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,7 @@ +2007-09-17 Joel Sherrill + + * posix/src/semaphorecreatesupp.c: Fixed warning. + 2007-09-17 Joel Sherrill * libmisc/dumpbuf/dumpbuf.c: Use printk. 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 -- cgit v1.2.3