mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
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.
This commit is contained in:
parent
f0caff7484
commit
cc28ab4e56
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=49515
10
benchmarks/bonnie++/files/patch-bonnie++.cpp
Normal file
10
benchmarks/bonnie++/files/patch-bonnie++.cpp
Normal file
@ -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))
|
Loading…
Reference in New Issue
Block a user