From a761495bb1e5ffb3c3f657f03f45204147997b08 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sat, 3 Jun 2006 00:33:10 +0000 Subject: 2006-06-02 Joel Sherrill * itron/src/trcv_mbf.c, posix/src/semopen.c, rtems/src/taskvariableadd.c, score/macros/rtems/score/heap.inl: Fix warnings. --- cpukit/ChangeLog | 6 ++++++ cpukit/itron/src/trcv_mbf.c | 4 +++- cpukit/posix/src/semopen.c | 9 ++++++--- cpukit/rtems/src/taskvariableadd.c | 2 +- cpukit/score/macros/rtems/score/heap.inl | 2 +- 5 files changed, 17 insertions(+), 6 deletions(-) (limited to 'cpukit') diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 6e3a5e3bc2..cd2425a1e4 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,9 @@ +2006-06-02 Joel Sherrill + + * 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 * libnetworking/netinet/ip_icmp.c: Update icps_allecho counter. diff --git a/cpukit/itron/src/trcv_mbf.c b/cpukit/itron/src/trcv_mbf.c index 9e05334433..aee0a8661b 100644 --- a/cpukit/itron/src/trcv_mbf.c +++ b/cpukit/itron/src/trcv_mbf.c @@ -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); diff --git a/cpukit/posix/src/semopen.c b/cpukit/posix/src/semopen.c index 522177d3b0..1e31451932 100644 --- a/cpukit/posix/src/semopen.c +++ b/cpukit/posix/src/semopen.c @@ -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; } diff --git a/cpukit/rtems/src/taskvariableadd.c b/cpukit/rtems/src/taskvariableadd.c index 6892eeba51..c37b0c22f5 100644 --- a/cpukit/rtems/src/taskvariableadd.c +++ b/cpukit/rtems/src/taskvariableadd.c @@ -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; diff --git a/cpukit/score/macros/rtems/score/heap.inl b/cpukit/score/macros/rtems/score/heap.inl index 5a815c43cf..78accba6b1 100644 --- a/cpukit/score/macros/rtems/score/heap.inl +++ b/cpukit/score/macros/rtems/score/heap.inl @@ -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 -- cgit v1.2.3