src/font.c: retain constness in font_compare()
parent
b6811023ea
commit
5d3e174bda
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue