diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-12-02 22:50:33 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-12-02 22:50:33 +0000 |
commit | ffe316d5267c5e7ce99685be45efc9308b041dc6 (patch) | |
tree | 35cf4feefc6218fed328a2d13346ecbf1792245c /c/src/exec/rtems/src/region.c | |
parent | Changes to reflect new revision of erc32 per Jiri Gaisler's suggestions. (diff) | |
download | rtems-ffe316d5267c5e7ce99685be45efc9308b041dc6.tar.bz2 |
Suggested changes from Mark Jordan which eliminate warnings and errors
he received using the Microtec C++ compiler. Most of these are
either missing casts from/to (void *), heavy handed use of enumerated
types, or simply assumed conversions. There is at least one actual
bug in an error path in thread.c in which the wrong argument was
passed to _Thread_Stack_Free and was not being caught by gcc.
Diffstat (limited to '')
-rw-r--r-- | c/src/exec/rtems/src/region.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c/src/exec/rtems/src/region.c b/c/src/exec/rtems/src/region.c index 5a8ad26797..f9e2dd39b4 100644 --- a/c/src/exec/rtems/src/region.c +++ b/c/src/exec/rtems/src/region.c @@ -360,7 +360,7 @@ rtems_status_code rtems_region_get_segment( _Thread_queue_Enqueue( &the_region->Wait_queue, timeout ); _Thread_Enable_dispatch(); - return( executing->Wait.return_code ); + return (rtems_status_code) executing->Wait.return_code; } return RTEMS_INTERNAL_ERROR; /* unreached - only to remove warnings */ @@ -464,7 +464,7 @@ rtems_status_code rtems_region_return_segment( if ( the_thread == NULL ) break; - the_segment = _Region_Allocate_segment( + the_segment = (void **) _Region_Allocate_segment( the_region, the_thread->Wait.count ); |