Make -c only set flag_c and not a toggle. With flag_c disabled by
default, this makes the behavior of gstat more predictable when -c is specified multiple times on the command line.
This commit is contained in:
parent
ceecf6a783
commit
6bf611a72d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=112491
@ -72,7 +72,7 @@ main(int argc, char **argv)
|
|||||||
while ((i = getopt(argc, argv, "cI:")) != -1) {
|
while ((i = getopt(argc, argv, "cI:")) != -1) {
|
||||||
switch (i) {
|
switch (i) {
|
||||||
case 'c':
|
case 'c':
|
||||||
flag_c = !flag_c;
|
flag_c = 1;
|
||||||
break;
|
break;
|
||||||
case 'I':
|
case 'I':
|
||||||
p = NULL;
|
p = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user