diff options
author | Joerg Wunsch <joerg@FreeBSD.org> | 2001-11-02 19:01:03 +0000 |
---|---|---|
committer | Joerg Wunsch <joerg@FreeBSD.org> | 2001-11-02 19:01:03 +0000 |
commit | cc28ab4e5667a56d82f0c92fed04fcdc9c7dd3ba (patch) | |
tree | 4e63a13e1019e69739aeebcb48c0bc4cf8b91f22 /benchmarks/bonnie++ | |
parent | Update to latest snapshot (gdb-5.0.92). (diff) |
Setting optind to 0 before calling getopt(3) is a stupid idea; it would
cause argv[0] to be evaluated as a program option, which is usually not
what we want. ;-) Just leave it alone, the library is supposed to DTRT
anyway.
Notes
Notes:
svn path=/head/; revision=49515
Diffstat (limited to 'benchmarks/bonnie++')
-rw-r--r-- | benchmarks/bonnie++/files/patch-bonnie++.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/benchmarks/bonnie++/files/patch-bonnie++.cpp b/benchmarks/bonnie++/files/patch-bonnie++.cpp new file mode 100644 index 000000000000..9aa4622af0ce --- /dev/null +++ b/benchmarks/bonnie++/files/patch-bonnie++.cpp @@ -0,0 +1,10 @@ +--- bonnie++.cpp.orig Mon Aug 20 00:39:12 2001 ++++ bonnie++.cpp Fri Nov 2 19:54:31 2001 +@@ -172,7 +172,6 @@ + #endif + + int int_c; +- optind = 0; + while(-1 != (int_c = getopt(argc, argv, "bd:fg:m:n:p:qr:s:u:x:y")) ) + { + switch(char(int_c)) |