1 The index() function is obsolete, use strchr() instead.
3 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
5 --- a/scripts/kconfig/lxdialog/util.c
6 +++ b/scripts/kconfig/lxdialog/util.c
10 while (word && *word) {
11 - sp = index(word, ' ');
12 + sp = strchr(word, ' ');
18 (newl && wlen < 4 && sp
19 && wlen + 1 + strlen(sp) > room
20 - && (!(sp2 = index(sp, ' '))
21 + && (!(sp2 = strchr(sp, ' '))
22 || wlen + 1 + (sp2 - sp) > room))) {