mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
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
This commit is contained in:
parent
8f79b07564
commit
e77b2ea427
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue