Page MenuHomeFreeBSD

virtual_oss: Combine -d, -l and -L option getopt code
ClosedPublic

Authored by christos on Mar 5 2026, 3:58 PM.
Tags
None
Referenced Files
F155996978: D55671.diff
Sun, May 10, 4:15 AM
F155996092: D55671.diff
Sun, May 10, 4:11 AM
F155946422: D55671.id173228.diff
Sat, May 9, 10:10 PM
F155945530: D55671.id173228.diff
Sat, May 9, 10:07 PM
Unknown Object (File)
Wed, May 6, 12:17 AM
Unknown Object (File)
Tue, Apr 28, 12:51 PM
Unknown Object (File)
Tue, Apr 28, 11:45 AM
Unknown Object (File)
Mon, Apr 27, 4:18 PM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

usr.sbin/virtual_oss/virtual_oss/main.c
2252

What is the difference between -d and -l?

usr.sbin/virtual_oss/virtual_oss/main.c
2252

Oh, I see, it's the last parameter to dup_profile(). Then you can collapse the calls:

ptr = dup_profile(&profile, opt_amp, opt_pol, opt_mute[0], opt_mute[1], c == 'L', c == 'd');
This revision is now accepted and ready to land.Mar 10 2026, 1:19 AM