summaryrefslogtreecommitdiff
path: root/scripts/kconfig/mconf.c
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2022-11-13 19:59:42 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2022-11-21 10:18:39 +0900
commit4d980fd111237ab64705b982f61f284c2a7885e5 (patch)
treef1af16802865defb0f1f054554d214b7cce19864 /scripts/kconfig/mconf.c
parent1791360cb37ff5ef797afe9006cb315ebb7e969e (diff)
kconfig: remove const qualifier from str_get()
update_text() apparently edits the buffer returned by str_get(). (and there is no reason why it shouldn't) Remove 'const' quailifier and casting. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/kconfig/mconf.c')
-rw-r--r--scripts/kconfig/mconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c
index 9d3cf510562f..d7f7e1bf7dd4 100644
--- a/scripts/kconfig/mconf.c
+++ b/scripts/kconfig/mconf.c
@@ -440,8 +440,8 @@ again:
res = get_relations_str(sym_arr, &head);
set_subtitle();
- dres = show_textbox_ext("Search Results", (char *)
- str_get(&res), 0, 0, keys, &vscroll,
+ dres = show_textbox_ext("Search Results", str_get(&res), 0, 0,
+ keys, &vscroll,
&hscroll, &update_text, (void *)
&data);
again = false;