mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-19 00:51:18 +08:00
bsps/shared/grlib/amba/ambapp_names.c: Address sign comparison warnings
These changes were made to address GCC -Wsign-compare warnings. In this case, the vendor ID in the management structure was unsigned and the vendor parameters to various helper functions were signed.
This commit is contained in:
@@ -439,7 +439,7 @@ static char *ambapp_get_devname(ambapp_device_name *devs, int id)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
char *ambapp_device_id2str(int vendor, int id)
|
||||
char *ambapp_device_id2str(unsigned int vendor, int id)
|
||||
{
|
||||
ambapp_vendor_devnames *ven = &vendors[0];
|
||||
|
||||
@@ -451,7 +451,7 @@ char *ambapp_device_id2str(int vendor, int id)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
char *ambapp_vendor_id2str(int vendor)
|
||||
char *ambapp_vendor_id2str(unsigned int vendor)
|
||||
{
|
||||
ambapp_vendor_devnames *ven = &vendors[0];
|
||||
|
||||
@@ -463,7 +463,7 @@ char *ambapp_vendor_id2str(int vendor)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int ambapp_vendev_id2str(int vendor, int id, char *buf)
|
||||
int ambapp_vendev_id2str(unsigned int vendor, int id, char *buf)
|
||||
{
|
||||
char *dstr, *vstr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user