From 7ff71d2b0e3babb1524994bc0fd8e5f35781dd7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Mon, 15 Jun 2026 07:55:10 +0200 Subject: [PATCH] spell: use "const char *" variables for result of string functions with const parameter --- src/plugins/spell/spell-command.c | 3 ++- src/plugins/spell/spell.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/spell/spell-command.c b/src/plugins/spell/spell-command.c index af2fbd2cb..824968024 100644 --- a/src/plugins/spell/spell-command.c +++ b/src/plugins/spell/spell-command.c @@ -140,7 +140,8 @@ void spell_command_speller_list_dicts (void) { #ifndef USE_ENCHANT - char *country, *lang, *pos, *iso; + const char *pos; + char *country, *lang, *iso; char str_dict[256], str_country[128]; struct AspellConfig *config; AspellDictInfoList *list; diff --git a/src/plugins/spell/spell.c b/src/plugins/spell/spell.c index 533041007..5da8f3640 100644 --- a/src/plugins/spell/spell.c +++ b/src/plugins/spell/spell.c @@ -391,7 +391,7 @@ spell_string_is_url (const char *word) */ int -spell_string_is_nick (struct t_gui_buffer *buffer, const char *word) +spell_string_is_nick (struct t_gui_buffer *buffer, char *word) { char *pos, *pos_nick_completer, *pos_space, saved_char; const char *buffer_type, *buffer_nick, *buffer_channel;