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/util.c | |
parent | 1791360cb37ff5ef797afe9006cb315ebb7e969e (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/util.c')
-rw-r--r-- | scripts/kconfig/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/util.c b/scripts/kconfig/util.c index 29585394df71..b78f114ad48c 100644 --- a/scripts/kconfig/util.c +++ b/scripts/kconfig/util.c @@ -74,7 +74,7 @@ void str_printf(struct gstr *gs, const char *fmt, ...) } /* Retrieve value of growable string */ -const char *str_get(struct gstr *gs) +char *str_get(struct gstr *gs) { return gs->s; } |