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:
parent
dfe820efce
commit
355c8e885c
|
@ -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 != '=')
|
||||
|
|
Loading…
Reference in New Issue
Block a user