diff options
author | Ed Maste <emaste@FreeBSD.org> | 2023-06-19 15:01:08 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2023-06-19 15:02:38 +0000 |
commit | e77b2ea427c8aad502e0b56954745570e2fc8cd2 (patch) | |
tree | 075a550abb41e128083c7b339b9ba4e4e3a20481 | |
parent | 8f79b07564df4deccf63478c2a87dafabeac95c3 (diff) | |
download | src-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.c | 2 |
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; |