svn commit: trunk/buildroot/package: module-init-tools procps util-linux
Author: sjhill
Date: 2006-12-04 18:16:03 -0800 (Mon, 04 Dec 2006) New Revision: 16782
Log:
Patch packages to remove legacy and deprecated functions. All of these patches have been sent upstream to the various maintainers.
Added:
trunk/buildroot/package/module-init-tools/module-init-tools-remove-index.patch trunk/buildroot/package/procps/procps-remove-index.patch trunk/buildroot/package/util-linux/util-linux-remove-deprecated-functions.patch
Changeset:
Added: trunk/buildroot/package/module-init-tools/module-init-tools-remove-index.patch
===================================================================
buildroot/package/module-init-tools/module-init-tools-remove-index.patch +12 -0
@@ -0,0 +1,12 @@ +diff -ur module-init-tools-3.2.2/modprobe.c module-init-tools-3.2.2-patched/modprobe.c +--- module-init-tools-3.2.2/modprobe.c 2005-12-01 17:42:09.000000000 -0600 ++++ module-init-tools-3.2.2-patched/modprobe.c 2006-12-04 19:50:50.353237649 -0600 +@@ -270,7 +270,7 @@ + char *modname; + + /* Ignore lines without : or which start with a # */ +- ptr = index(line, ':'); ++ ptr = strchr(line, ':'); + if (ptr == NULL || line[strspn(line, "\t ")] == '#') + return 0; +
Added: trunk/buildroot/package/procps/procps-remove-index.patch
===================================================================
buildroot/package/procps/procps-remove-index.patch +21 -0
@@ -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);
Added: trunk/buildroot/package/util-linux/util-linux-remove-deprecated-functions.patch
===================================================================
buildroot/package/util-linux/util-linux-remove-deprecated-functions.patch +49 -0
49 lines not on this page · raw message