From 355c8e885c559354590c1a94a9aadf7030642151 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 27 May 2022 17:52:35 +0200 Subject: [PATCH] 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 --- cursor/xcursor.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cursor/xcursor.c b/cursor/xcursor.c index 6aa1c456..8107b7c5 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 != '=')