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
9 program_invocation_short_name);
11 for ( ; *argv; argv++) {
12 - if (WriteMode || index(*argv, '='))
13 + if (WriteMode || strchr(*argv, '='))
14 ReturnCode += WriteSetting(*argv);
16 ReturnCode += ReadSetting(*argv);