summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkeramida <keramida@FreeBSD.org>2003-03-22 09:47:02 +0000
committerkeramida <keramida@FreeBSD.org>2003-03-22 09:47:02 +0000
commit8d9477cdb2916a267643e25062ea14b8a6f1c512 (patch)
treeb43998ae166deedf1d76482c45675f2f28f3c19e
parent1746b69bcdd44924d943bd346d1a7aec9dae0a0e (diff)
downloadFreeBSD-src-8d9477cdb2916a267643e25062ea14b8a6f1c512.zip
FreeBSD-src-8d9477cdb2916a267643e25062ea14b8a6f1c512.tar.gz
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.
-rw-r--r--usr.sbin/gstat/gstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/gstat/gstat.c b/usr.sbin/gstat/gstat.c
index dea5453..885b9c4 100644
--- a/usr.sbin/gstat/gstat.c
+++ b/usr.sbin/gstat/gstat.c
@@ -72,7 +72,7 @@ main(int argc, char **argv)
while ((i = getopt(argc, argv, "cI:")) != -1) {
switch (i) {
case 'c':
- flag_c = !flag_c;
+ flag_c = 1;
break;
case 'I':
p = NULL;
OpenPOWER on IntegriCloud