Make TXT_SetSeparatorLabel label parameter const

This commit is contained in:
Turo Lamminen 2018-03-13 19:46:36 +02:00
parent 94d85c51b0
commit a6fbae76cd
2 changed files with 2 additions and 2 deletions

View file

@ -73,7 +73,7 @@ static void TXT_SeparatorDestructor(TXT_UNCAST_ARG(separator))
free(separator->label);
}
void TXT_SetSeparatorLabel(txt_separator_t *separator, char *label)
void TXT_SetSeparatorLabel(txt_separator_t *separator, const char *label)
{
free(separator->label);

View file

@ -59,7 +59,7 @@ txt_separator_t *TXT_NewSeparator(char *label);
* @param label The new label (UTF-8 format).
*/
void TXT_SetSeparatorLabel(txt_separator_t *separator, char *label);
void TXT_SetSeparatorLabel(txt_separator_t *separator, const char *label);
#endif /* #ifndef TXT_SEPARATOR_H */