aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2023-06-19 15:01:08 +0000
committerEd Maste <emaste@FreeBSD.org>2023-06-19 15:02:38 +0000
commite77b2ea427c8aad502e0b56954745570e2fc8cd2 (patch)
tree075a550abb41e128083c7b339b9ba4e4e3a20481
parent8f79b07564df4deccf63478c2a87dafabeac95c3 (diff)
downloadsrc-e77b2ea427c8aad502e0b56954745570e2fc8cd2.tar.gz
src-e77b2ea427c8aad502e0b56954745570e2fc8cd2.zip
ifconfig: set boolean to true rather than incrementing
GCC warns about "increment of a boolean expression." Reported by: amd64-gcc12 Cirrus-CI run Sponsored by: The FreeBSD Foundation
-rw-r--r--sbin/ifconfig/ifconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index fa22f09f8100..6d66677467c1 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -501,7 +501,7 @@ args_parse(struct ifconfig_args *args, int argc, char *argv[])
args->printkeys = true;
break;
case 'l': /* scan interface names only */
- args->namesonly++;
+ args->namesonly = true;
break;
case 'm': /* show media choices in status */
args->supmedia = true;