mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 18:35:27 +08:00
2007-09-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/src/semaphorecreatesupp.c: Fixed warning.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user