From 569787da58542a02b830e016115de1ca05a3a25f Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Tue, 13 Mar 2018 19:47:59 +0200 Subject: [PATCH] Make TXT_NewSeparator parameter const --- textscreen/txt_separator.c | 2 +- textscreen/txt_separator.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/textscreen/txt_separator.c b/textscreen/txt_separator.c index 1905bc44..1f30fc64 100644 --- a/textscreen/txt_separator.c +++ b/textscreen/txt_separator.c @@ -98,7 +98,7 @@ txt_widget_class_t txt_separator_class = NULL, }; -txt_separator_t *TXT_NewSeparator(char *label) +txt_separator_t *TXT_NewSeparator(const char *label) { txt_separator_t *separator; diff --git a/textscreen/txt_separator.h b/textscreen/txt_separator.h index 5c88938e..665c5a34 100644 --- a/textscreen/txt_separator.h +++ b/textscreen/txt_separator.h @@ -50,7 +50,7 @@ extern txt_widget_class_t txt_separator_class; * @return The new separator widget. */ -txt_separator_t *TXT_NewSeparator(char *label); +txt_separator_t *TXT_NewSeparator(const char *label); /** * Change the label on a separator.