aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>2001-11-03 03:01:03 +0800
committerjoerg <joerg@FreeBSD.org>2001-11-03 03:01:03 +0800
commit5ea87c65c428408e214d47a85b04443b1cbdedad (patch)
tree2a7d6d5593658a04dd38292227fa83fa4752c014
parent9af87bcacbd9f9075824af2043027ed71b3d36f4 (diff)
downloadfreebsd-ports-gnome-5ea87c65c428408e214d47a85b04443b1cbdedad.tar.gz
freebsd-ports-gnome-5ea87c65c428408e214d47a85b04443b1cbdedad.tar.zst
freebsd-ports-gnome-5ea87c65c428408e214d47a85b04443b1cbdedad.zip
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.
-rw-r--r--benchmarks/bonnie++/files/patch-bonnie++.cpp10
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))