lua-bit32: new package
[buildroot-gz.git] / package / procps-ng / 0001-remove-index.patch
blob1d85b31cb5c82d2e45511ed57e4a910612087169
1 sysctl: remove use of legacy index()
3 [yann.morin.1998@free.fr: adapt to procps-ng]
4 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
5 diff -durN procps-v3.3.9.orig/sysctl.c procps-v3.3.9/sysctl.c
6 --- procps-v3.3.9.orig/sysctl.c 2013-12-03 12:16:18.000000000 +0100
7 +++ procps-v3.3.9/sysctl.c 2014-05-31 00:45:00.869748741 +0200
8 @@ -794,7 +794,7 @@
9 program_invocation_short_name);
11 for ( ; *argv; argv++) {
12 - if (WriteMode || index(*argv, '='))
13 + if (WriteMode || strchr(*argv, '='))
14 ReturnCode += WriteSetting(*argv);
15 else
16 ReturnCode += ReadSetting(*argv);