From a18ccfe0a72fcfb634314cc1db31d84a824934ec Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 21 Oct 1997 18:39:49 +0000 Subject: Fixed a number of warnings regarding comparisons between signed and unsigned numbers. --- c/src/libmisc/monitor/mon-dname.c | 6 +++--- c/src/libmisc/monitor/mon-driver.c | 2 +- c/src/libmisc/monitor/mon-itask.c | 2 +- c/src/libmisc/monitor/mon-symbols.c | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) (limited to 'c/src/libmisc/monitor') diff --git a/c/src/libmisc/monitor/mon-dname.c b/c/src/libmisc/monitor/mon-dname.c index 18b127fecf..45c28342ff 100644 --- a/c/src/libmisc/monitor/mon-dname.c +++ b/c/src/libmisc/monitor/mon-dname.c @@ -51,9 +51,9 @@ rtems_monitor_dname_next( rtems_id *next_id ) { - int n = rtems_get_index(*next_id); - rtems_driver_name_t *table = _IO_Driver_name_table; - rtems_driver_name_t *np = 0; + rtems_unsigned32 n = rtems_get_index(*next_id); + rtems_driver_name_t *table = _IO_Driver_name_table; + rtems_driver_name_t *np = 0; /* XXX should we be using _IO_Number_of_devices */ for (np = table + n ; n<_IO_Number_of_devices; n++, np++) diff --git a/c/src/libmisc/monitor/mon-driver.c b/c/src/libmisc/monitor/mon-driver.c index 212c1cfc77..c8eb36ab4e 100644 --- a/c/src/libmisc/monitor/mon-driver.c +++ b/c/src/libmisc/monitor/mon-driver.c @@ -63,7 +63,7 @@ rtems_monitor_driver_next( ) { rtems_configuration_table *c = _Configuration_Table; - int n = rtems_get_index(*next_id); + rtems_unsigned32 n = rtems_get_index(*next_id); if (n >= c->number_of_device_drivers) goto failed; diff --git a/c/src/libmisc/monitor/mon-itask.c b/c/src/libmisc/monitor/mon-itask.c index f6150642c5..59a3a4f284 100644 --- a/c/src/libmisc/monitor/mon-itask.c +++ b/c/src/libmisc/monitor/mon-itask.c @@ -40,7 +40,7 @@ rtems_monitor_init_task_next( { rtems_configuration_table *c = _Configuration_Table; rtems_initialization_tasks_table *itask; - int n = rtems_get_index(*next_id); + rtems_unsigned32 n = rtems_get_index(*next_id); if (n >= c->RTEMS_api_configuration->number_of_initialization_tasks) goto failed; diff --git a/c/src/libmisc/monitor/mon-symbols.c b/c/src/libmisc/monitor/mon-symbols.c index 401ad69d9c..123b1247db 100644 --- a/c/src/libmisc/monitor/mon-symbols.c +++ b/c/src/libmisc/monitor/mon-symbols.c @@ -231,7 +231,7 @@ rtems_symbol_value_lookup_exact( rtems_unsigned32 value ) { - int s; + rtems_unsigned32 s; rtems_symbol_t *sp; if (table == 0) @@ -271,7 +271,7 @@ rtems_symbol_name_lookup( char *name ) { - int s; + rtems_unsigned32 s; rtems_symbol_t *sp; if (table == 0) @@ -298,7 +298,7 @@ rtems_monitor_symbol_next( ) { rtems_symbol_table_t *table; - int n = rtems_get_index(*next_id); + rtems_unsigned32 n = rtems_get_index(*next_id); table = *(rtems_symbol_table_t **) object_info; if (table == 0) @@ -415,7 +415,7 @@ rtems_monitor_symbol_dump_all( boolean verbose ) { - int s; + rtems_unsigned32 s; rtems_symbol_t *sp; if (table == 0) -- cgit v1.2.3