The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / procps-ng / 0001-remove-index.patch
1 sysctl: remove use of legacy index()
2
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);
10  
11         for ( ; *argv; argv++) {
12 -               if (WriteMode || index(*argv, '='))
13 +               if (WriteMode || strchr(*argv, '='))
14                         ReturnCode += WriteSetting(*argv);
15                 else
16                         ReturnCode += ReadSetting(*argv);