summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2022-07-26 20:40:57 +0200
committermouse <[email protected]>2022-08-15 13:07:57 +0800
commitd3de7968bc7b608e70b090bd838eeaf4ea7d1913 (patch)
treedfe1456563ae967a6a697efe646666d96437a038
parente9eb2ad4c4ead503ce07a0623bf3fd58653e74ab (diff)
downloadmate-desktop-d3de7968bc7b608e70b090bd838eeaf4ea7d1913.tar.bz2
mate-desktop-d3de7968bc7b608e70b090bd838eeaf4ea7d1913.tar.xz
display-name: fix -Wsign-compare warning
-rw-r--r--libmate-desktop/display-name.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmate-desktop/display-name.c b/libmate-desktop/display-name.c
index d9eea2d..515d20f 100644
--- a/libmate-desktop/display-name.c
+++ b/libmate-desktop/display-name.c
@@ -226,7 +226,7 @@ static void read_pnp_ids(void)
static const char* find_vendor(const char* code)
{
const char* vendor_name;
- int i;
+ gsize i;
read_pnp_ids();
@@ -235,7 +235,7 @@ static const char* find_vendor(const char* code)
if (vendor_name)
return vendor_name;
- for (i = 0; i < sizeof(vendors) / sizeof(vendors[0]); ++i)
+ for (i = 0; i < G_N_ELEMENTS (vendors); ++i)
{
const Vendor* v = &(vendors[i]);