blob: 64bd55c39d3ce00cd68d7804a66bcdd37326b1e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
--- procps-3.2.7.orig/sysctl.c 2006-06-25 02:51:51.000000000 +0200
+++ procps-3.2.7/sysctl.c 2008-10-16 13:47:28.000000000 +0200
@@ -272,7 +272,7 @@ static int WriteSetting(const char *sett
return 0;
} /* end if */
- equals = index(setting, '=');
+ equals = strchr(setting, '=');
if (!equals) {
fprintf(stderr, ERR_NO_EQUALS, setting);
@@ -503,7 +503,7 @@ int main(int argc, char *argv[]) {
if (NameOnly && Quiet) // nonsense
return Usage(me);
SwitchesAllowed = false;
- if (WriteMode || index(*argv, '='))
+ if (WriteMode || strchr(*argv, '='))
ReturnCode = WriteSetting(*argv);
else
ReturnCode = ReadSetting(*argv);
|