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:
Joel Sherrill
2025-11-30 12:18:50 -06:00
parent b7aa0b5614
commit fa2e0e7e58
2 changed files with 6 additions and 6 deletions

View File

@@ -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;