From 6bf611a72d7cd2a8f5f56d9e340dac5518908929 Mon Sep 17 00:00:00 2001 From: Giorgos Keramidas Date: Sat, 22 Mar 2003 09:47:02 +0000 Subject: [PATCH] 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. --- usr.sbin/gstat/gstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/gstat/gstat.c b/usr.sbin/gstat/gstat.c index dea545397c8c..885b9c4502f0 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;