mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-27 23:43:34 +08:00
298cd8eaa2
Autogenerated from rename-patch.py (http://patchwork.ozlabs.org/patch/403345) Signed-off-by: Samuel Martin <s.martin49@gmail.com> 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);
|