diff options
author | Simon Ser <contact@emersion.fr> | 2022-05-27 17:52:35 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-05-27 22:41:12 +0200 |
commit | 355c8e885c559354590c1a94a9aadf7030642151 (patch) | |
tree | 2b9729c603861e382b4bf6bfdaae077c0a964a59 /cursor | |
parent | dfe820efcea45d46dc436e8fa64def9c69efbdfa (diff) | |
download | wayland-355c8e885c559354590c1a94a9aadf7030642151.tar.gz |
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>
Diffstat (limited to 'cursor')
-rw-r--r-- | cursor/xcursor.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cursor/xcursor.c b/cursor/xcursor.c index 6aa1c45..8107b7c 100644 --- a/cursor/xcursor.c +++ b/cursor/xcursor.c @@ -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 != '=') |