summaryrefslogtreecommitdiffstats
path: root/package/procps
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2006-12-05 02:16:03 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2006-12-05 02:16:03 +0000
commitf460603f02092b4f514d108dd8b4167a7a056213 (patch)
tree2e9ccdd20be04e324bcb1e5a8ac2f831b8982812 /package/procps
parente9fd85f5f98c888eedaf54203b6caeae5239fad1 (diff)
downloadbuildroot-novena-f460603f02092b4f514d108dd8b4167a7a056213.tar.gz
buildroot-novena-f460603f02092b4f514d108dd8b4167a7a056213.zip
Patch packages to remove legacy and deprecated functions. All of these patches have been sent upstream to the various maintainers.
Diffstat (limited to 'package/procps')
-rw-r--r--package/procps/procps-remove-index.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/procps/procps-remove-index.patch b/package/procps/procps-remove-index.patch
new file mode 100644
index 000000000..4f4cfb7bb
--- /dev/null
+++ b/package/procps/procps-remove-index.patch
@@ -0,0 +1,21 @@
+diff -ur procps-3.2.5/sysctl.c procps-3.2.5-patched/sysctl.c
+--- procps-3.2.5/sysctl.c 2005-01-05 15:00:47.000000000 -0600
++++ procps-3.2.5-patched/sysctl.c 2006-12-04 19:51:36.272843000 -0600
+@@ -272,7 +272,7 @@
+ return 0;
+ } /* end if */
+
+- equals = index(setting, '=');
++ equals = strchr(setting, '=');
+
+ if (!equals) {
+ fprintf(stderr, ERR_NO_EQUALS, setting);
+@@ -498,7 +498,7 @@
+ if (NameOnly && Quiet) // nonsense
+ return Usage(me);
+ SwitchesAllowed = false;
+- if (WriteMode || index(*argv, '='))
++ if (WriteMode || strchr(*argv, '='))
+ ReturnCode = WriteSetting(*argv);
+ else
+ ReturnCode = ReadSetting(*argv);