cursor: move xcursor_theme_inherits declarations at the top

Per code style, declarations need to be at the start of the block.

And make l const while at it.

Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
Simon Ser 2022-05-27 17:52:35 +02:00
parent dfe820efce
commit 355c8e885c

View File

@ -635,11 +635,13 @@ xcursor_theme_inherits(const char *full)
return NULL;
while (getline(&line, &line_size, f) >= 0) {
const char *l;
char *r;
if (strncmp(line, "Inherits", 8))
continue;
char *l = line + 8;
char *r;
l = line + 8;
while (*l == ' ')
l++;
if (*l != '=')