2002-09-14 Joel Sherrill <joel@OARcorp.com>

* src/dpmemcreate.c, src/dpmemident.c, src/msgqcreate.c,
	src/msgqident.c, src/partcreate.c, src/partident.c,
	src/ratemoncreate.c, src/ratemonident.c, src/regioncreate.c,
	src/regionident.c, src/semcreate.c, src/semident.c, src/taskcreate.c,
	src/taskident.c, src/timercreate.c, src/timerident.c: Added casts
	to Objects_Name to eliminate warnings.
This commit is contained in:
Joel Sherrill
2002-09-14 20:44:07 +00:00
parent 99e797a5d4
commit 6312db301d
17 changed files with 60 additions and 16 deletions

View File

@@ -1,3 +1,12 @@
2002-09-14 Joel Sherrill <joel@OARcorp.com>
* src/dpmemcreate.c, src/dpmemident.c, src/msgqcreate.c,
src/msgqident.c, src/partcreate.c, src/partident.c,
src/ratemoncreate.c, src/ratemonident.c, src/regioncreate.c,
src/regionident.c, src/semcreate.c, src/semident.c, src/taskcreate.c,
src/taskident.c, src/timercreate.c, src/timerident.c: Added casts
to Objects_Name to eliminate warnings.
2002-08-01 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* src/Makefile.am: Add librtems.a.

View File

@@ -72,7 +72,7 @@ rtems_status_code rtems_port_create(
_Objects_Open(
&_Dual_ported_memory_Information,
&the_port->Object,
name
(Objects_Name) name
);
*id = the_port->Object.id;

View File

@@ -46,7 +46,7 @@ rtems_status_code rtems_port_ident(
status = _Objects_Name_to_id(
&_Dual_ported_memory_Information,
name,
(Objects_Name) name,
OBJECTS_SEARCH_ALL_NODES,
id
);

View File

@@ -138,7 +138,7 @@ rtems_status_code rtems_message_queue_create(
_Objects_Open(
&_Message_queue_Information,
&the_message_queue->Object,
name
(Objects_Name) name
);
*id = the_message_queue->Object.id;

View File

@@ -58,7 +58,7 @@ rtems_status_code rtems_message_queue_ident(
status = _Objects_Name_to_id(
&_Message_queue_Information,
name,
(Objects_Name) name,
node,
id
);

View File

@@ -97,7 +97,11 @@ rtems_status_code rtems_partition_create(
_Chain_Initialize( &the_partition->Memory, starting_address,
length / buffer_size, buffer_size );
_Objects_Open( &_Partition_Information, &the_partition->Object, name );
_Objects_Open(
&_Partition_Information,
&the_partition->Object,
(Objects_Name) name
);
*id = the_partition->Object.id;
#if defined(RTEMS_MULTIPROCESSING)

View File

@@ -47,7 +47,12 @@ rtems_status_code rtems_partition_ident(
{
Objects_Name_to_id_errors status;
status = _Objects_Name_to_id( &_Partition_Information, name, node, id );
status = _Objects_Name_to_id(
&_Partition_Information,
(Objects_Name) name,
node,
id
);
return _Status_Object_name_errors_to_status[ status ];
}

View File

@@ -59,7 +59,11 @@ rtems_status_code rtems_rate_monotonic_create(
the_period->owner = _Thread_Executing;
the_period->state = RATE_MONOTONIC_INACTIVE;
_Objects_Open( &_Rate_monotonic_Information, &the_period->Object, name );
_Objects_Open(
&_Rate_monotonic_Information,
&the_period->Object,
(Objects_Name) name
);
*id = the_period->Object.id;
_Thread_Enable_dispatch();

View File

@@ -46,7 +46,7 @@ rtems_status_code rtems_rate_monotonic_ident(
status = _Objects_Name_to_id(
&_Rate_monotonic_Information,
name,
(Objects_Name) name,
OBJECTS_SEARCH_LOCAL_NODE,
id
);

View File

@@ -92,7 +92,11 @@ rtems_status_code rtems_region_create(
RTEMS_TIMEOUT
);
_Objects_Open( &_Region_Information, &the_region->Object, name );
_Objects_Open(
&_Region_Information,
&the_region->Object,
(Objects_Name) name
);
*id = the_region->Object.id;
_RTEMS_Unlock_allocator();

View File

@@ -48,7 +48,7 @@ rtems_status_code rtems_region_ident(
status = _Objects_Name_to_id(
&_Region_Information,
name,
(Objects_Name) name,
OBJECTS_SEARCH_LOCAL_NODE,
id
);

View File

@@ -201,7 +201,11 @@ rtems_status_code rtems_semaphore_create(
);
}
_Objects_Open( &_Semaphore_Information, &the_semaphore->Object, name );
_Objects_Open(
&_Semaphore_Information,
&the_semaphore->Object,
(Objects_Name) name
);
*id = the_semaphore->Object.id;

View File

@@ -71,7 +71,12 @@ rtems_status_code rtems_semaphore_ident(
{
Objects_Name_to_id_errors status;
status = _Objects_Name_to_id( &_Semaphore_Information, name, node, id );
status = _Objects_Name_to_id(
&_Semaphore_Information,
(Objects_Name) name,
node,
id
);
return _Status_Object_name_errors_to_status[ status ];
}

View File

@@ -182,7 +182,7 @@ rtems_status_code rtems_task_create(
THREAD_CPU_BUDGET_ALGORITHM_NONE,
NULL, /* no budget algorithm callout */
_Modes_Get_interrupt_level(initial_modes),
name
(Objects_Name) name
);
if ( !status ) {

View File

@@ -59,7 +59,12 @@ rtems_status_code rtems_task_ident(
return RTEMS_SUCCESSFUL;
}
status = _Objects_Name_to_id( &_RTEMS_tasks_Information, name, node, id );
status = _Objects_Name_to_id(
&_RTEMS_tasks_Information,
(Objects_Name) name,
node,
id
);
return _Status_Object_name_errors_to_status[ status ];
}

View File

@@ -58,7 +58,11 @@ rtems_status_code rtems_timer_create(
the_timer->the_class = TIMER_DORMANT;
_Objects_Open( &_Timer_Information, &the_timer->Object, name );
_Objects_Open(
&_Timer_Information,
&the_timer->Object,
(Objects_Name) name
);
*id = the_timer->Object.id;
_Thread_Enable_dispatch();

View File

@@ -47,7 +47,7 @@ rtems_status_code rtems_timer_ident(
status = _Objects_Name_to_id(
&_Timer_Information,
name,
(Objects_Name) name,
OBJECTS_SEARCH_LOCAL_NODE,
id
);