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
Unknown Object (File)
Thu, Sep 17, 7:19 AM
Unknown Object (File)
Wed, Sep 16, 1:13 PM
Unknown Object (File)
Mon, Sep 14, 12:43 AM
Unknown Object (File)
Sun, Sep 6, 2:10 AM
Unknown Object (File)
Sun, Sep 6, 2:07 AM
Unknown Object (File)
Tue, Sep 1, 8:57 AM
Unknown Object (File)
Wed, Aug 26, 6:30 PM
Unknown Object (File)
Mon, Aug 24, 2:23 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