forked from Imagelibrary/rtems
Reflect rtems_libio_number_iops being uint32_t.
This commit is contained in:
@@ -220,7 +220,7 @@ int rtems_libio_is_open_files_in_fs(
|
||||
{
|
||||
rtems_libio_t *iop;
|
||||
int result = 0;
|
||||
int i;
|
||||
uint32_t i;
|
||||
|
||||
rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
|
||||
|
||||
@@ -264,7 +264,7 @@ int rtems_libio_is_file_open(
|
||||
{
|
||||
rtems_libio_t *iop;
|
||||
int result=0;
|
||||
int i;
|
||||
uint32_t i;
|
||||
|
||||
rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ rtems_libio_t *rtems_libio_iop_freelist;
|
||||
void rtems_libio_init( void )
|
||||
{
|
||||
rtems_status_code rc;
|
||||
int i;
|
||||
uint32_t i;
|
||||
rtems_libio_t *iop;
|
||||
|
||||
if (rtems_libio_number_iops > 0)
|
||||
@@ -61,7 +61,7 @@ void rtems_libio_init( void )
|
||||
rtems_fatal_error_occurred(RTEMS_NO_MEMORY);
|
||||
|
||||
iop = rtems_libio_iop_freelist = rtems_libio_iops;
|
||||
for (i = 0 ; i < (rtems_libio_number_iops - 1) ; i++, iop++)
|
||||
for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)
|
||||
iop->data1 = iop + 1;
|
||||
iop->data1 = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user