diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2022-11-13 19:59:42 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2022-11-21 10:18:39 +0900 |
commit | 4d980fd111237ab64705b982f61f284c2a7885e5 (patch) | |
tree | f1af16802865defb0f1f054554d214b7cce19864 /scripts/kconfig/mconf.c | |
parent | 1791360cb37ff5ef797afe9006cb315ebb7e969e (diff) | |
download | lwn-4d980fd111237ab64705b982f61f284c2a7885e5.tar.gz lwn-4d980fd111237ab64705b982f61f284c2a7885e5.zip |
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.c | 4 |
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; |