2006-06-02 Joel Sherrill <joel@OARcorp.com>

* itron/src/trcv_mbf.c, posix/src/semopen.c,
	rtems/src/taskvariableadd.c, score/macros/rtems/score/heap.inl: Fix
	warnings.
This commit is contained in:
Joel Sherrill
2006-06-03 00:33:10 +00:00
parent 0eede05d70
commit a761495bb1
5 changed files with 17 additions and 6 deletions

View File

@@ -1,3 +1,9 @@
2006-06-02 Joel Sherrill <joel@OARcorp.com>
* itron/src/trcv_mbf.c, posix/src/semopen.c,
rtems/src/taskvariableadd.c, score/macros/rtems/score/heap.inl: Fix
warnings.
2006-05-31 Eric Norum <norume@aps.anl.gov>
* libnetworking/netinet/ip_icmp.c: Update icps_allecho counter.

View File

@@ -36,6 +36,7 @@ ER trcv_mbf(
CORE_message_queue_Status status;
boolean wait;
Watchdog_Interval interval;
uint32_t msgsz;
interval = 0;
if (tmout == TMO_POL) {
@@ -63,11 +64,12 @@ ER trcv_mbf(
&the_message_buffer->message_queue,
the_message_buffer->Object.id,
msg,
p_msgsz,
&msgsz,
wait,
interval
);
_Thread_Enable_dispatch();
*p_msgsz = msgsz;
status = (CORE_message_queue_Status)_Thread_Executing->Wait.return_code;
return
_ITRON_Message_buffer_Translate_core_message_buffer_return_code(status);

View File

@@ -45,7 +45,8 @@ sem_t *sem_open(
mode_t mode;
unsigned int value = 0;
int status;
sem_t the_semaphore_id;
sem_t the_semaphore_id;
Objects_Id *id;
POSIX_Semaphore_Control *the_semaphore;
Objects_Locations location;
@@ -93,7 +94,8 @@ sem_t *sem_open(
the_semaphore->open_count += 1;
_Thread_Enable_dispatch();
_Thread_Enable_dispatch();
return (sem_t *)&the_semaphore->Object.id;
id = &the_semaphore->Object.id;
return (sem_t *)id;
}
@@ -118,5 +120,6 @@ sem_t *sem_open(
if ( status == -1 )
return SEM_FAILED;
return (sem_t *) &the_semaphore->Object.id;
id = &the_semaphore->Object.id;
return (sem_t *)id;
}

View File

@@ -83,7 +83,7 @@ rtems_status_code rtems_task_variable_add(
new->ptr = ptr;
new->dtor = dtor;
new->next = the_thread->task_variables;
new->next = (struct rtems_task_variable_tt *)the_thread->task_variables;
the_thread->task_variables = new;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;

View File

@@ -19,7 +19,7 @@
/*
* WARNING: this file is only visually checked against
* '../../../inline/rtems/score/heap.inl'. Use those file for reference
* if encounter problems.
* if you encounter problems.
*/
#include <rtems/score/address.h>