diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-02-09 01:19:08 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-02-10 11:31:49 +0900 |
commit | 523ca58b7db2e30e3c185a7927dd80a30c1bc743 (patch) | |
tree | 59c135f8bde7d4ec24f1270c1d8615b8b142f296 /scripts/kconfig/symbol.c | |
parent | d717f24d8c68081caae2374cf5ea6c4e62c490fc (diff) | |
download | linux-523ca58b7db2e30e3c185a7927dd80a30c1bc743.tar.gz linux-523ca58b7db2e30e3c185a7927dd80a30c1bc743.tar.bz2 linux-523ca58b7db2e30e3c185a7927dd80a30c1bc743.zip |
kconfig: remove const qualifier from sym_expand_string_value()
This function returns realloc'ed memory, so the returned pointer
must be passed to free() when done. So, 'const' qualifier is odd.
It is allowed to modify the expanded string.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/kconfig/symbol.c')
-rw-r--r-- | scripts/kconfig/symbol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c index 60a76f958f33..cca9663be5dd 100644 --- a/scripts/kconfig/symbol.c +++ b/scripts/kconfig/symbol.c @@ -899,7 +899,7 @@ struct symbol *sym_find(const char *name) * name to be expanded shall be prefixed by a '$'. Unknown symbol expands to * the empty string. */ -const char *sym_expand_string_value(const char *in) +char *sym_expand_string_value(const char *in) { const char *src; char *res; |