]> granicus.if.org Git - neomutt/commitdiff
move color_line_new
authorRichard Russon <rich@flatcap.org>
Fri, 4 Oct 2019 01:26:53 +0000 (02:26 +0100)
committerRichard Russon <rich@flatcap.org>
Tue, 8 Oct 2019 22:45:06 +0000 (23:45 +0100)
color.c

diff --git a/color.c b/color.c
index 44b8d2ef5ce3b7a6a2087955646b84116b62c81e..5e430ad148141ead2866a38ca9af2e3d455ae209 100644 (file)
--- a/color.c
+++ b/color.c
@@ -286,20 +286,6 @@ void mutt_color_free(uint32_t fg, uint32_t bg)
   }
 }
 
-/**
- * color_line_new - Create a new ColorLine
- * @retval ptr Newly allocated ColorLine
- */
-static struct ColorLine *color_line_new(void)
-{
-  struct ColorLine *p = mutt_mem_calloc(1, sizeof(struct ColorLine));
-
-  p->fg = COLOR_UNSET;
-  p->bg = COLOR_UNSET;
-
-  return p;
-}
-
 /**
  * color_line_free - Free a ColorLine
  * @param ptr         ColorLine to free
@@ -384,6 +370,20 @@ void mutt_color_init(void)
 #endif
 }
 
+/**
+ * color_line_new - Create a new ColorLine
+ * @retval ptr Newly allocated ColorLine
+ */
+static struct ColorLine *color_line_new(void)
+{
+  struct ColorLine *cl = mutt_mem_calloc(1, sizeof(struct ColorLine));
+
+  cl->fg = COLOR_UNSET;
+  cl->bg = COLOR_UNSET;
+
+  return cl;
+}
+
 #ifdef HAVE_COLOR
 #ifdef USE_SLANG_CURSES
 /**