Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+4 -4
+1 -1
scripts/kconfig/lkc.h
··· 76 76 void str_free(struct gstr *gs); 77 77 void str_append(struct gstr *gs, const char *s); 78 78 void str_printf(struct gstr *gs, const char *fmt, ...); 79 - const char *str_get(struct gstr *gs); 79 + char *str_get(struct gstr *gs); 80 80 81 81 /* menu.c */ 82 82 void _menu_init(void);
+2 -2
scripts/kconfig/mconf.c
··· 440 440 441 441 res = get_relations_str(sym_arr, &head); 442 442 set_subtitle(); 443 - dres = show_textbox_ext("Search Results", (char *) 444 - str_get(&res), 0, 0, keys, &vscroll, 443 + dres = show_textbox_ext("Search Results", str_get(&res), 0, 0, 444 + keys, &vscroll, 445 445 &hscroll, &update_text, (void *) 446 446 &data); 447 447 again = false;
+1 -1
scripts/kconfig/util.c
··· 74 74 } 75 75 76 76 /* Retrieve value of growable string */ 77 - const char *str_get(struct gstr *gs) 77 + char *str_get(struct gstr *gs) 78 78 { 79 79 return gs->s; 80 80 }