The function does not take ownership of its arguments and it does not
require those arguments to be heap-allocated.
In fact there is only one caller and it passed stack-allocated values.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
/*
* Adds one color sequence to array with color scheme.
- * When returning success (0) this function takes ownership of
- * @seq and @name, which have to be allocated strings.
*/
static int colors_add_scheme(struct ul_color_ctl *cc,
- char *name,
- char *seq0)
+ const char *name,
+ const char *seq0)
{
struct ul_color_scheme *cs = NULL;
char *seq = NULL;