buildroot/package/procps-ng/0001-remove-index.patch
Peter Korsgaard 298cd8eaa2 package/*: rename patches according to the new policy
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>
2015-02-03 14:52:56 +01:00

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);