diff options
| author | Mike Frysinger <vapier@gentoo.org> | 2007-03-17 06:29:05 +0000 |
|---|---|---|
| committer | Mike Frysinger <vapier@gentoo.org> | 2007-03-17 06:29:05 +0000 |
| commit | 7a96504d30e0bcafb5e014555c741fea6513172a (patch) | |
| tree | 5a4f44d9eb2de6649b4e8798e890ec86bfa386fd /scripts | |
| parent | 75acbe322c7b03e742120be2fcc20fe8a7ef0f7b (diff) | |
| download | busybox-w32-7a96504d30e0bcafb5e014555c741fea6513172a.tar.gz busybox-w32-7a96504d30e0bcafb5e014555c741fea6513172a.tar.bz2 busybox-w32-7a96504d30e0bcafb5e014555c741fea6513172a.zip | |
dont use obsolete function index() as pointed out by src.obsolete.funcs
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/kconfig/lxdialog/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/kconfig/lxdialog/util.c b/scripts/kconfig/lxdialog/util.c index f82cebb9f..072d3eecc 100644 --- a/scripts/kconfig/lxdialog/util.c +++ b/scripts/kconfig/lxdialog/util.c | |||
| @@ -224,7 +224,7 @@ void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x) | |||
| 224 | newl = 1; | 224 | newl = 1; |
| 225 | word = tempstr; | 225 | word = tempstr; |
| 226 | while (word && *word) { | 226 | while (word && *word) { |
| 227 | sp = index(word, ' '); | 227 | sp = strchr(word, ' '); |
| 228 | if (sp) | 228 | if (sp) |
| 229 | *sp++ = 0; | 229 | *sp++ = 0; |
| 230 | 230 | ||
| @@ -236,7 +236,7 @@ void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x) | |||
| 236 | if (wlen > room || | 236 | if (wlen > room || |
| 237 | (newl && wlen < 4 && sp | 237 | (newl && wlen < 4 && sp |
| 238 | && wlen + 1 + strlen(sp) > room | 238 | && wlen + 1 + strlen(sp) > room |
| 239 | && (!(sp2 = index(sp, ' ')) | 239 | && (!(sp2 = strchr(sp, ' ')) |
| 240 | || wlen + 1 + (sp2 - sp) > room))) { | 240 | || wlen + 1 + (sp2 - sp) > room))) { |
| 241 | cur_y++; | 241 | cur_y++; |
| 242 | cur_x = x; | 242 | cur_x = x; |
