mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
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
1 changed files with 4 additions and 2 deletions
|
|
@ -635,11 +635,13 @@ xcursor_theme_inherits(const char *full)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
while (getline(&line, &line_size, f) >= 0) {
|
while (getline(&line, &line_size, f) >= 0) {
|
||||||
|
const char *l;
|
||||||
|
char *r;
|
||||||
|
|
||||||
if (strncmp(line, "Inherits", 8))
|
if (strncmp(line, "Inherits", 8))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
char *l = line + 8;
|
l = line + 8;
|
||||||
char *r;
|
|
||||||
while (*l == ' ')
|
while (*l == ' ')
|
||||||
l++;
|
l++;
|
||||||
if (*l != '=')
|
if (*l != '=')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue