diff options
author | keramida <keramida@FreeBSD.org> | 2003-03-22 09:47:02 +0000 |
---|---|---|
committer | keramida <keramida@FreeBSD.org> | 2003-03-22 09:47:02 +0000 |
commit | 8d9477cdb2916a267643e25062ea14b8a6f1c512 (patch) | |
tree | b43998ae166deedf1d76482c45675f2f28f3c19e /usr.sbin/gstat | |
parent | 1746b69bcdd44924d943bd346d1a7aec9dae0a0e (diff) | |
download | FreeBSD-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.
Diffstat (limited to 'usr.sbin/gstat')
-rw-r--r-- | usr.sbin/gstat/gstat.c | 2 |
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; |