src/font.c: retain constness in font_compare()

current
Síle Ekaterin Liszka 2023-11-28 06:27:04 -08:00
parent b6811023ea
commit 5d3e174bda
1 changed files with 2 additions and 2 deletions

View File

@ -7,8 +7,8 @@
void *fontdb; void *fontdb;
int font_compare(const void *a, const void *b) { int font_compare(const void *a, const void *b) {
font_t *x = (font_t *)a; const font_t *x = (const font_t *)a;
font_t *y = (font_t *)b; const font_t *y = (const font_t *)b;
return strcmp(x->name, y->name); return strcmp(x->name, y->name);
} }