5cd1c4feb5
procps is getting replaced by procps-ng, and there are new versions available! procps-ng is now an autotools package, so get rid of our custom build/install rules. Remove most patches, except for one that still half-applies, so update and rename it. procps is dead, long live procps-ng! Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
17 lines
588 B
Diff
17 lines
588 B
Diff
sysctl: remove use of legacy index()
|
|
|
|
[yann.morin.1998@free.fr: adapt to procps-ng]
|
|
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
|
diff -durN procps-v3.3.9.orig/sysctl.c procps-v3.3.9/sysctl.c
|
|
--- procps-v3.3.9.orig/sysctl.c 2013-12-03 12:16:18.000000000 +0100
|
|
+++ procps-v3.3.9/sysctl.c 2014-05-31 00:45:00.869748741 +0200
|
|
@@ -794,7 +794,7 @@
|
|
program_invocation_short_name);
|
|
|
|
for ( ; *argv; argv++) {
|
|
- if (WriteMode || index(*argv, '='))
|
|
+ if (WriteMode || strchr(*argv, '='))
|
|
ReturnCode += WriteSetting(*argv);
|
|
else
|
|
ReturnCode += ReadSetting(*argv);
|